You can remove unwanted Query records from the database. To remove a Query record click button present in the same row of the Query details, from the Query Designer page and click OK in the confirmation message.
Note: Removing a Query record will remove all its child nodes as well.