You can follow this example to delete/add any rows from excel.
If you want to filter and delete I suggest you filter the data set first (Sheet A) and copy what you need to another excel file (Sheet B) then delete all data from the main sheet (Sheet A) then copy from Sheet B to A.
Another easiest way is to use the Datatable function, which would save your time and processing time a lot.
Use read range activity to read the excel.give starting insdex as A3
Use filter datatable activity and give condition either using column name or excel. Assume the filtered datatable name as filtered dt.
You can delete the existing excel if you dont want to maintain it and use write range activity to write the filtereddt with the same excel name or if you want to keep the excel ,write it to a different sheet in the same excel or you can write it into a different excel file based on your requirement