When developers working with SQL Server “Denali”, MS SQL Server 2008 R2 and MS SQL Server 2005 want to delete a query, they should follow the next steps:

1. From the View menu, choose Solution Explorer.

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

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

4. In the Microsoft SQL Server Management Studio dialog box, click Delete.