views:

4798

answers:

1

Hi,

I'm new to perforce and have created a few workspaces as exercises for getting familiar with it. Now I would like to delete some of the workspaces. I just want to get rid of the workspaces so that they do not appear on the drop-down in the workspaces view (DO NOT want to do anything with actual depot files).

Googling up an answer yields the suggestion to "make the workspace active" (I guess that means select it in the workspace dropdown?) and then delete it from the "edit" menu. Unfortunately, the delete option is grayed-out when I try this.

Anyone know how to do this, or do I just have to live with junk workspaces? I've physically deleted one of them from the disk, and it still appears in the workspace drop down and I can't even sync it with the depot now, so I guess that's not how to do it.

Thannks!

+16  A: 

From the "View" menu, select "Workspaces". You'll see all of the workspaces you've created. Select the workspaces you want to delete and click "Edit" -> "Delete Workspace", or right-click and select "Delete Workspace". If the workspace is "locked" to prevent changes, you'll get an error message.

To unlock the workspace, click "Edit" (or right-click and click "Edit Workspace") to pull up the workspace editor, uncheck the "locked" checkbox, and save your changes. You can delete the workspace once it's unlocked.

In my experience, the workspace will continue to be shown in the drop-down list until you click on it, at which point p4v will figure out you've deleted it and remove it from the list.

Commodore Jaeger
Thanks!When I try to right-click the workspace I want to delete and select "unlock", it sends the p4 command: "p4 unlock //my_workspace", the response is: "//secondary.... -files(s) not opened on this client."Doesn't seem to do anything. I've tried switching workspaces and exiting p4v but the junk workspaces always remain in the dropdown.
Angelo
You're trying to lock/unlock files (in the left pane of p4v), not workspaces. I've revised my answer to help you bring up the workspaces view.
Commodore Jaeger
Ha! That did it. I had thought the "workspace view" was the left pane.Thank you very much!
Angelo