How to: Delete Queries
You can delete a query, removing it from the project and permanently deleting it from the file system. Queries deleted using the following procedure are not sent to the Recycle Bin and cannot be recovered.
Note
Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Visual Studio Settings.
To permanently delete a query
From the View menu, choose Solution Explorer.
In Solution Explorer, select the query you want to permanently delete.
Right-click the query and from the shortcut menu, click Delete.
In the Microsoft Development Environment dialog box, click Delete.
Note
If you want to remove the query from the project without deleting it, click Remove. Then you can right-click the query folder and choose Add Item to find and add the query back later.
See Also
Tasks
How to: Discard Changes Made to Queries