If you have saved the workbook then I don't think anything can be done. If you haven't saved the workbook, try Undo or close the workbook without saving and reopen.
For future reference, if you need to delete data after filtering, select the data, press Alt+; to select only the visible cells, and then delete.