Implement deleting queries.