You can erase any query you have saved in the database.
To erase a query in the database: On the QMF command line, enter:
ERASE QUERY queryname
Unless you are a QMF administrator, you cannot erase queries that are saved by others.