Search code examples
accurev

Remove a workspace in Accurev


Is there any command which can let me remove a workspace from Accurev? I tried accurev rmws WorkspaceName, and it says its removed the workspace, but when I try recreating the workspace it gives me the message that the workspace already exists.

I'd appreciate any help.


Solution

  • It is not possible at all in AccuRev to remove a workspace/stream/snapshot name once it's been created. Deleting a workspace is just marking it as deleted - for later revival if that should be necessary.

    This is clearly stated in the docs (CLI.pdf):

    The rmws command makes the specified workspace inactive. More precisely, it deactivates the workspace stream in the depot; [...] Note: after performing an rmws command, you cannot then create a new workspace with the same name. The name remains irrevocably associated with the inactive workspace.

    You can change other parameters of the workspace though: You can give it a new name. You can move it to a new machine. You can move it to a new backing stream.