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:
where ContentHash is retrieved with:
IVersionedContentManager.deleteContent(ContentHash hash, boolean force, IProgressMonitor monitor)
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