It's all about the answers!

Ask a question

LSCM workspace delete


N. VD (842734) | asked May 13 '13, 6:27 a.m.
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.


Examine in help: 
Usage: lscm workspace delete [options] <workspace>


Accepted answer


permanent link
Krzysztof Kaźmierczyk (7.5k480103) | answered May 13 '13, 7:53 a.m.
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:
lscm workspace delete -r https://your-server:9443/ccm -u BUILD -P BUILD common

N. VD selected this answer as the correct answer

Comments
N. VD commented May 13 '13, 9:03 a.m.

  Thank you very much Krzysztof and Piotr !


The suggestion Krzysztof made in the previous post worked just the way I was expecting it to.

2 other answers



permanent link
Piotr Aniola (3.7k11738) | answered May 13 '13, 7:20 a.m.
the workspace should be addressed by the id, not the name.
try running
>lscm list workspaces
to find out the id of the workspace.


permanent link
Krzysztof Kaźmierczyk (7.5k480103) | answered May 13 '13, 7:33 a.m.
Hello Piotr,
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
1
Piotr Aniola commented May 13 '13, 7:48 a.m. | edited May 13 '13, 7:50 a.m.

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
Nick Edgar commented May 14 '13, 12:35 p.m.
JAZZ DEVELOPER

Note that the name may not be unique within the same repo either.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.