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

How can I (unsafely) delete a stream using the plain java API?

I am trying to delete a stream using plain java API.  This works:

    public static void deleteStream(final RtcSession session,IWorkspaceConnection stream_to_delete, IWorkspaceConnection workspace_for_snapshot) throws TeamRepositoryException{
        final IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(session.getRepo());
        wm.safelyDeleteStream((IWorkspaceHandle) stream_to_delete.getContextHandle(), workspace_for_snapshot, session.getMonitor());
    }

But I need to provide a workspace to save a snapshot of the stream.  The UI has an option to just delete the stream without creating a snapshot.  Does anyone know where that is in the API?  I assume there's a way to do it??

Andy

0 votes


Accepted answer

Permanent link
Have you tried wm.deleteWorkspace(workspaceHandle, progressMonitor)? As far as I know streams and repository workspaces are pretty much the same.
Andy Jewell selected this answer as the correct answer

3 votes

Comments

By cracky, it works.. ;)  Thank you!

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
× 10,938
× 169
× 79

Question asked: Jan 25 '16, 6:53 p.m.

Question was seen: 2,735 times

Last updated: Jan 26 '16, 10:45 a.m.

Confirmation Cancel Confirm