You can remove whole projects, folders, or files from a project, or you can remove a project from a solution, using the Remove button on the Project Explorer toolbar. Note that removing a source file from a project does not remove it from disk.

To remove an item from the solution:
  1. In the Project Explorer, select the item to remove.
  2. Choose Edit > Delete or press Del.

—or—

  1. In the Project Explorer, right-click the item to remove.
  2. Choose Remove.