PublishingSystemManagerServicesDeleteTargets Method |
Namespace: IngeniuxCMService
public XHRServiceResponseGeneric<PublishingTargetsDeleteResult> DeleteTargets( UniqueObjectsDeleteParam data )
Object containing array of Id of Publishing Targets be deleted
{ "data": { "selectedIds": ["PublishingTargets/34", "PublishingTargets/35"] } }
Object containing the Id of Publishing Targets that were actually deleted, and array of basic information on available Publishing Targets
{ "code": 0, "error": null, "message": { "deletedIds": ["PublishingTargets\/34", "PublishingTargets\/35"], "allowedTargets": [{ "name": "Live", "id": "PublishingTargets\/1", "dynamicPublish": true, "previewUrl": "DssPreview\/IGXDynamicPreview", "rootPageId": "x2", "structuredUrlEnabled": true }, { "name": "Staging", "id": "PublishingTargets\/33", "dynamicPublish": true, "previewUrl": "DssPreview\/IGXDynamicPreview", "rootPageId": "x2", "structuredUrlEnabled": true }, { "name": "Staging 2", "id": "PublishingTargets\/34", "dynamicPublish": true, "previewUrl": "DssPreview\/IGXDynamicPreview", "rootPageId": "x2", "structuredUrlEnabled": true }, { "name": "Live2", "id": "PublishingTargets\/35", "dynamicPublish": true, "previewUrl": "DssPreview\/IGXDynamicPreview", "rootPageId": "x2", "structuredUrlEnabled": true }] } }
Non-existing Publishing Targets will be ignored. The returned list of delete Ids are Publishing Targets that exist.