How to delete data by query

You should go to your index control panel, and click on the Crawler tab

Once there, click on the Delete Data By Query shortcut item.

Then you simply enter the query by which you want to delete your data, as explained.