@gtorodelvalle I tried this code and found some issue when in multiple delete screen if you go to search and then come back and 
do this process for some time you will find that screens are not in proper sequence, infact at times you'll see some altogether different screen.