Delete file from Perforce control without deleting from workspace?

Is there a way to delete files / directories from a Perforce control without deleting the file from the client workspace?

I am indifferent to what happens to the / dirs files in the repository, I want to make sure that they are NOT deleted from my local workspace.

Thanks.

+7
source share
3 answers

Try

p4 delete -k <file> 

It will update the server, but will not touch the workspace.

http://www.perforce.com/perforce/doc.current/manuals/cmdref/delete.html

+8
source

If you are not connected to a server that supports the -k switch in the delete command, you can create a new workspace with a different root, delete files from it, and return to the original workspace. Since the new workspace has a different root, the files in the original workspace will not be affected.

0
source

You can snooze files and then delete the “pending files” perforce, your local files must be intact.

0
source

All Articles