Add logic to delete queries.