It's all about the answers!

Ask a question

Deleting Files


K M (38324348) | asked Nov 08 '10, 12:50 p.m.
Does the java api provide a way to remove files and directories from an component in a workspace?

One answer



permanent link
K M (38324348) | answered Nov 09 '10, 10:45 a.m.
workspace.configurationOpFactory() will remove files and dirs

// Cal to commit changes.
workspace.commit(cs1,Collections.singletonList(workspace.configurationOpFactory().delete(file)), MONITOR);

Your answer


Register or to post your answer.