Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When I try to delete a workspace using p4 client -d, I get the message "client is locked, cannot be deleted"

Tags:

perforce

I'm trying to delete a workspace (client) in perforce, so I type

p4 client -d my-client

but I get the error message

client is locked, cannot be deleted

How do I unlock the workspace so it can be deleted?

like image 726
Chad Avatar asked Dec 04 '15 14:12

Chad


1 Answers

You need to edit the client spec. Type

p4 client my-client

This will put you in an editor with the client spec. Find the "Options:" section, change "locked" to "unlocked", and save the file. You should now be able to delete the workspace.

like image 158
Chad Avatar answered Jan 04 '23 01:01

Chad