Administrators can delete query records.
User Permissions Needed
Query Builder Admin permission set.
In general, you should not delete a query record because it can cause major issues where it is used within your org.
Deleting a query record is appropriate if the record was created in error.
- In the tab bar, click , or in Salesforce Classic, click .
- Click Queries.
- Select a list view—like All Queries.
- Click next to the query you want to modify and click Delete.