deletion of queries