Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.


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


0 votes


Accepted answer

Permanent link
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

1 vote

Comments

  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
the workspace should be addressed by the id, not the name.
try running
>lscm list workspaces
to find out the id of the workspace.

0 votes


Permanent link
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.

0 votes

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

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 13 '13, 6:27 a.m.

Question was seen: 8,692 times

Last updated: May 14 '13, 12:35 p.m.

Confirmation Cancel Confirm