Cannot delete the query object because there are still objects depending on this query. Check the dependent objects node ...

Cannot delete the query object because there are still objects depending on this query. Check the dependent objects node under the query (you may need to reopen the client to get the most update-to-date list) and delete those objects first.