Unable to swipe element using class, id and index

i have to swipe left to delete present element on screen.
when i user frameLayout with index 0 it delete element present below IF component.
but when i increases index it does not select element present below THEN component.

i have used below method to locate element.

used with ID
used with bounds