Desperately finding a solution to delete rows in Collections

maybe I am not entering the code in the correct place.
If it is possible can you please write down the instructions step by step. Many thanks.