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

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To permanently delete a query

  1. From the View menu, choose Solution Explorer.

  2. In Solution Explorer, select the query you want to permanently delete.

  3. Right-click the query and from the shortcut menu, click Delete.

  4. 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: Clear Query Results

How to: Discard Changes Made to Queries

Other Resources

Designing Queries and Views

Working with Views

Performing Basic Operations with Queries