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
  • Hi Akheil,

    I assume you only entered the LogicalId in your PublicationOutput25.Delete, that should delete the logical, version and language level implicitly. See SDL Documentation The more specific you are, for example stating LogicalId and version, the less will be deleted.

    Same deal for DocumentObj25.Delete, only specify the LogicalId. Do note however that the system has high referential integraty, so you cannot delete a DITA Map (~ DocumentObj) if it is still referenced by your Publication. So you have to delete them in reference order.

    -Dave

Reply
  • Hi Akheil,

    I assume you only entered the LogicalId in your PublicationOutput25.Delete, that should delete the logical, version and language level implicitly. See SDL Documentation The more specific you are, for example stating LogicalId and version, the less will be deleted.

    Same deal for DocumentObj25.Delete, only specify the LogicalId. Do note however that the system has high referential integraty, so you cannot delete a DITA Map (~ DocumentObj) if it is still referenced by your Publication. So you have to delete them in reference order.

    -Dave

Children