Hi Arujan,
You can use below build in service for extracting successfully documents that are processed successfully in TN,
wm.tn.query:createDocumentQuery
wm.tn.query:documentQuery
Above service will give you list of documents that are executed successfully, using those document id you can delete it from TN by using below service,
wm.tn.doc:deleteDocuments
Explore TN build in service.
Thanks,
Arun
#Integration-Server-and-ESB#B2B-Integration#webMethods