How to delete a workspace in Perforce (using p4v)?

前端 未结 5 1838
感动是毒
感动是毒 2021-01-30 12:05

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 th

5条回答
  •  被撕碎了的回忆
    2021-01-30 12:29

    In P4V click View > Workspaces

    If the workspace to be deleted is not visible in the list you may have to uncheck the box Show only workspaces available for use on this computer

    Right-click the workspace to be deleted and choose Edit Workspace 'My_workspace'

    On the Advanced tab uncheck the box Locked: only the owner can edit workspace settings > then click OK

    Now back on the Workspaces tab of Perforce right-click the workspace to be deleted and choose Delete Workspace 'My_workspace'

    P4V should remove the item from the drop-down list when clicking on it.

    There is a case where a previously deleted workspace remains in the drop-down list, and P4V displays the following error:

    P4V Workspace Switch Error. This workspace cannot be used on this computer either because the host field does not match your computer name or the workspace root cannot be used on this computer.

    If this error occurs, the workspace(possibly on another host) may have only been unloaded. Click the P4V Workspaces Recycle bin

    P4V Recycle

    In the resulting Unloaded Workspaces window right-click the offending workspace and choose Delete Workspace 'My_workspace'. P4V should now remove the workspace item from the drop-down list.

提交回复
热议问题