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.
This is equivalent to the command line:
This is equivalent to the command line:
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.
Command:
Files:
Remove files in //client-path:
Files in the specified client path and all directories below will be
removed.
p4 sync //client-path/...#none
Only files in the specified client path will be removed.
Any files in directories beneath the client path will remain
in your workspace.
p4 sync //client-path/*#none
Selected Files:
[Return to "How to Use P4Web"]