deleting query objects works