Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 for Visual Studio Documentation | 2025.2

# Delete files

To delete a file from the depot, you must delete it using Visual Studio, mark it for delete using P4 for Visual Studio, then submit the changelist containing the marked file. When you delete a file, a new revision marked deleted is stored in the depot and the file is removed from your workspace. Previous revisions in the depot are not affected.

To delete a file:

1. Right-click the file and choose Delete.

   P4 for Visual Studio asks if you want to mark the file for delete.

2. On the P4 for Visual Studio dialog, select the default pending changelist or a new changelist

3. Click Yes.

   P4 for Visual Studio marks the file for delete and it is placed in a changelist.

4. Submit the changelist containing the file. The file is deleted from the depot and your client workspace.

If you want to keep a file in your project but avoid adding it to P4 Server control, use Ignore Lists. To learn more, see Exclude Files from P4 Server Control.

Your search for returned results