Desperately finding a solution to delete rows in Collections

That is not not working either. Do you think I have entered the code in the right place? just noticed a red dot.