if your requirement is to show empty result view on status deleted, then you can check the selection parameter in ON_Search event before execuring query and just skip the search code is status is deleted.
Or it is something different.
Regards Harish Kumar