Hi @Ankur Bawiskar  , this logic is removing other criteria's and keeping only the criteria which I need to remove actually 

My requirement is to Just XYZ criteria and keep the other criteria's as it is