How to use the Broker Java API to delete Documents

Hi all,

Is there any way to delete specific documents for a disabled triggers from the Broker by using any service in Developer? I think that we can do that by a specific java flow based on Broker Admin API, but I have no experience with that API and don’t know really how portable is such a solution (for example when we are going to migrate from wm 7 to 8).

Any help is welcomed. Thanks in advance.