added delete_query to collection and resource