Remove obsolete query