To Delete a Code Item From a Project

To remove a Code item from a project, perform the following actions:
  1. Open the customization project in the Customization Project Editor. (See To Open a Project for details.)
  2. Click Code in the navigation pane to open the Code page.
  3. In the page table, click the item to be deleted.
  4. On the page toolbar, click Delete Row (X).
  5. On the page toolbar, click Save to save the changes to the customization project.

You can delete a Code item from the customization project on the Edit Project Items page of the Customization Project Editor. (See To Delete Items from the Project on the Edit Project Items Page for details.)

If you are working in Microsoft Visual Studio, to update the files in the file system, publish the customization project. The .cs file of the deleted Code item will be removed from the file system.