Query deletion