Click to Rate and Give Feedback
MSDN
MSDN Library
SQL Server
SQL Server 2008
Database Engine
Development
 How to: Delete Data or Log Files fr...
Community Content
In this section
Statistics Annotations (0)
Other versions are also available for the following:
SQL Server 2008 Books Online (December 2008)
How to: Delete Data or Log Files from a Database (SQL Server Management Studio)

This topic describes how to delete data or log files from a database by using Object Explorer in SQL Server Management Studio.

ms175574.note(en-us,SQL.100).gifImportant:
A file must be empty before it can be deleted. For more information, see How to: Shrink a File (SQL Server Management Studio).

  1. In Object Explorer, connect to an instance of the SQL Server Database Engine and then expand that instance.

  2. Expand Databases, right-click the database from which to delete the file, and then click Properties.

  3. Select the Files page.

  4. In the Database files grid, select the file to delete and then click Remove.

  5. Click OK.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker