Perforce Software

P4Web "remove" Help Page

[Return to "How to Use P4Web"]

The Remove Workspace Files command allows you to delete files from your local client workspace. (The files are not deleted from the depot; merely removed from your local copy of the portion of the depot in your client workspace.) In Perforce terminology, this is also referred to as "removing a file by "syncing to the null revision".

The advantage of using the Remove Workspace Files command over deleting the file with commands native to your operating system is that by using Perforce, the Perforce server is aware that you've removed the file from your workspace.

More specifically - if you delete a file with the native operating system commands, Perforce has no way of knowing that your workspace is no longer in sync with the depot. A Sync command can therefore result in an erroneous "file(s) up to date" message. By removing files from your workspace within Perforce, Perforce will know about it, and Sync command will work normally.

Command:

When you are ready to remove the files from your workspace, click on the Remove From Workspace button.

Files:

Specifies which files will be removed. Choose between:

Remove files in //client-path:

  • ...and subdirectories:
    Files in the specified client path and all directories below will be removed.

    This is equivalent to the command line:
    p4 sync //client-path/...#none

  • ...at this level only:
    Only files in the specified client path will be removed. Any files in directories beneath the client path will remain in your workspace.

    This is equivalent to the command line:
    p4 sync //client-path/*#none

Selected Files:

If you have any files synced in the current directory, you can specify whether or not to remove them individually.

To include or exclude individual files from removal, click on the checkboxes for each file, and activate the radio button for the Selected Files option.

[Return to "How to Use P4Web"]


Copyright 2000 Perforce Software
$Id: //depot/r99.2/p4-doc/manuals/p4web/help/remove.html#2 $