LSCM workspace delete
Whenever i try the command to delete a workspace, it seems to be missing some parameters.
(I'm trying to delete a repository named 'common' on our RTC server)
lscm workspace delete -u BUILD -P BUILD common
Error message:
Problem running 'workspace delete':
subcommand "delete" requires argument-based initialization, but does not provide a directory argument.
Usage: lscm workspace delete [options] <workspace>
Accepted answer
It seems, that when you are using workspace name, you need to add also -r parameter (or use lscm login before).
N., could you try following command:
N., could you try following command:
lscm workspace delete -r https://your-server:9443/ccm -u BUILD -P BUILD common
2 other answers
Hello Piotr,
It is not true. You can use also workspace name.
See this:
There was another similar post on jazz.net forum:
https://jazz.net/forum/questions/68918/command-line-interface-question
Try putting the workspace name in double quotes and re run the command.
It is not true. You can use also workspace name.
See this:
> scm help worskpace delete Purpose: Deletes a workspace or stream. Aliases: del, d Usage: scm workspace delete [options] <workspace> workspace - The workspace or stream to delete. To specify the workspace or stream, use its name, alias or UUID.
There was another similar post on jazz.net forum:
https://jazz.net/forum/questions/68918/command-line-interface-question
Try putting the workspace name in double quotes and re run the command.
Comments
Krzysztof, have you actually tried that?
Because I did, referencing the workspace by it's name gives the error N. VD. reported.
Using the ID works (at least this is the case for 4.0.2)
Using the name only works if you add the -r parameter, I guess because the name might not be unique across repos.
1 vote
Note that the name may not be unique within the same repo either.
1 vote