P4V Documentation | 2025.1

# Clean up files and directories

To clean up the file system objects that are not under control of Helix Core Server or to restore workspace files to match the state of corresponding depot files, you can select the Clean option on a folder.

Changes performed by the Clean option are permanent. You cannot revert this operation.

To clean files and folders:

1. Select a folder and click Actions > Clean, or right-click a folder and select Clean.

   If there are files that need to be cleaned up, the Clean Workspace (Revert to Depot) dialog box appears.

   P4V compares your workspace to the depot and lists the following files:

   - Files that were modified locally without being checked out
   - Local files that are not in the depot
   - Depot files that are missing from your local workspace
2. By default, all files are selected for cleanup. If there are any files that you do not want to clean up, clear the respective check boxes.
3. If you want to clean up the files and folders listed with Exclude specific files from a depot, clear the Apply P4IGNORE files for this workspace check box.

4. P4V compares your workspace to the depot again and also lists applicable files that were previously excluded in the respective section.

5. Click Clean.
6. In the Confirm Deleting and Reverting Files dialog box, click Continue to confirm the operation.

Your search for returned results