I don't clearly understand what you have meant by remove the first where clause so as to avoid any filters
.
Then you can use the below code:
$collection->getSelect()
->where($getMainTableAlias.'.entity_id IN (SELECT catText.entity_id FROM '.$catalogCategoryEntityTextTable.' '
. 'as catText where catText.attribute_id="'.$attributeId.'" AND '
. ' FIND_IN_SET("'.$groupId.'", catText.value) GROUP BY catText.entity_id)');
// fine the Where condition of collection
$wherePart = $collection->getSelect()>getPart(\Magento\Framework\DB\Select::WHERE);
// remove all where condition from Collection
$collection->getSelect()->reset(\Magento\Framework\DB\Select::WHERE);
// Remove first condition from $wherePart variable
if(!empty($wherePart)) {
// remove first where
unset($wherePart[0]);
}
// Apply Rest of all where condition on collection Again
if(!empty($wherePart)) {
$collection->getSelect()>setPart(\Magento\Framework\DB\Select::WHERE,$wherePart);
}
Using getSelect()->reset(\Magento\Framework\DB\Select::WHERE)
you can remove all where condition from the query.