How to delete a file object in RTC Programatically using Java plain APIs ?
Hello Team,
I have a scenario, wherein I have to delete the file already present in RTC Stream. I need to delete a particular file, checkin as a changeset and then deliver the changeset with the deleted file. All this should be done using RTC APIs.
I already have code for creating the repo workspace for the stream. get the files from that components. now i need to delete some files.
Are there any APIs to delete the particular file already existing in stream ?
Thanks.
Accepted answer
I got the solution :
IConfigurationOpFactory opFactory = fRepoWsConn.configurationOpFactory();
opFactory.delete(foundItem);
Collection ops = new ArrayList();
ops.add(fRepoWsConn.configurationOpFactory().delete(foundItem));
IUpdateReport r = fRepoWsConn.commit(Collections.singletonList(getChangeSet("Deleting File")), Collections.singletonList(ops), null);
One other answer
https://jazz.net/library/article/1006 explains what can be deleted.
To find out what API that is, you could try to debug the Eclipse client. I had a quick look, but was unable to find the action at the moment.