To Delete a Code Item From a Project
To remove a Code item from a project, perform the following actions:
- Open the customization project in the Customization Project Editor. (See To Open a Project for details.)
- Click Code in the navigation pane to open the Code page.
- In the page table, click the item to be deleted.
- On the page toolbar, click Delete Row (X).
- 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.