purge obsolete query