Delete Template
Deletes a Sales Configuration Template, with an option to also delete the underlying template Quote or Order.
- Resource URL:
/services/apexrest/<namespace>/v1/cpq/templates/{templateId} - HTTP Method: DELETE
- Content-Type: application/json
- Response Format: JSON
| Parameter | Type | Required | Description |
|---|---|---|---|
| templateId | String | Yes | The SalesConfigTemplate__c record ID. |
| deleteTemplateRecord | Boolean | No | If true, also deletes the underlying template Quote or Order and its line items. |
| forceDelete | Boolean | No | If true, allows deletion of templates in Approved status. |
DELETE /services/apexrest/vlocity_cmt/v1/cpq/templates/a1Bxx0000004XyzDEF?deleteTemplateRecord=true&forceDelete=false
Success Response (200):
| Parameter | Type | Description |
|---|---|---|
| deletedTemplateId | String | The ID of the deleted SalesConfigTemplate__c record. |
| deletedTemplateRecordId | String | The ID of the deleted underlying Quote or Order (only present when deleteTemplateRecord was true and the record was successfully deleted). |