Problem with deleting rows

Hello

I would like to delete rows after I filtered my sheet however I get an error.

Do you have any ideas why is that and how can I fix it? the filtering works OK.