Deleting Publication and Map objects

I am trying to delete a publication and map I created through the API to add to a translation job and output assets for translation. After the translation is complete, I would like to delete the translation job, publication and map.

I am able to delete the translation job using Delete(translationJobID),

as for the publication I used Trisoft.Utilities.ServiceReferences.PublicationOutput25ServiceReference.PublicationOutput.Delete (logicalId, version,puboutput, language combination, requiredmetadata), but only the publication output was deleted not the entire publication object.

as for the map I used Trisoft.Utilities.ServiceReferences.DocumentObj25ServiceReference.DocumentObj.Delete(logicalid, version, language, resolution, requiredMetadata) and only the language level gets deleted. 

How would I go about getting rid of the publication and map at the logical level? I did check, this publication and map are not referenced anywhere else in SDL.

Parents Reply Children