How to: Delete a Source-controlled Item

When you delete a source-controlled item, Visual Studio deletes the local copy automatically if the source control plug-in supports namespace change propagation. Otherwise, it queries you for deletion instructions. For more about namespace change propagation, see Introducing Source Control.

Most source control plug-ins for Visual Studio do not delete items from a source control database permanently. For more information about how to permanently delete an item from source control, look in the third-party product documentation for your plug-in.

To delete a source-controlled item

  1. In Visual Studio, open Solution Explorer.

  2. Right-click the item to delete, and then click Delete.

  3. In the Source Control dialog box, click Delete the item(s) locally and in the source control store.

  4. In Solution Explorer, check in the item as supported by the source control plug-in.

  5. Notify anyone who might have checked out the project to which the deleted item belongs, that you have deleted it.

  6. If namespace change propagation is supported, have the other users perform a get operation to update their local copies. They receive a message notifying them of the deletion.

  7. If namespace change propagation is not supported, you must tell the other users to manually remove their local copies of the deleted item.

See Also

Reference

Check Out For Edit Dialog Box (Source Control)

Source Control Dialog Box

Other Resources

Performing Source Control Tasks