It's all about the answers!

Ask a question

How delete content from source control with Plain API?


Emilio Salierno (112) | asked Nov 03 '16, 9:36 a.m.
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

Be the first one to answer this question!


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.