script to delete from index by query