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

How delete content from source control with Plain API?

I have implemented a procedure using plain API (version 5.0) to automate deletion of content on specific versionables using the method:

IVersionedContentManager.deleteContent(ContentHash hash, boolean force, IProgressMonitor monitor)

where ContentHash is retrieved with:
ContentHash contentHash = ((IFileItem) versionable).getContent().getHash();

After I ran the procedure to delete content of some versionables related a specific component, I noticed that was deleted also the content of other versionables in an other component.

How it's possible?  It's the right way to delete content for a specific versionable ?

Thanks.
Emilio

0 votes


Be the first one to answer this question!

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
× 411
× 169

Question asked: Nov 03 '16, 9:36 a.m.

Question was seen: 2,209 times

Last updated: Nov 03 '16, 9:36 a.m.

Confirmation Cancel Confirm