Clean up files and directories

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

Warning

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 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 Ignore files with P4IGNORE, 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, click Continue to confirm the operation.