Someone know how to delete selected data from google spreadsheet

hello guys I want to know that
can I delete all data from google sheet
LIKE we get filter data from this method
https://community.niotron.com/t/get-data-from-spreadsheet-using-csv-range-sql-query-method/2144

same I want to delete filtered data LIKE ABCD
all rows will delete which have ABCD