delete https://customer.my.onetrust.com/api/template/v2/templates/root-version//templates
The API can be used to delete a template using its Root Version Id.
Things to Know
The template should not be associated with any Assessment or any action rules of other templates.
Template of specific types PIA, VENDOR, ITRM, CONTROL, INCIDENT, EXCHANGE, ESG, DISCLOSURE, ERM, TPDD, DISCLOSURE_YOY can be deleted using the API.
Root Version Id of a template can be retrieved by calling the Get List of Templates API.
Example Request
DELETE https://{hostname}/api/template/v2/templates/root-version/7d271be5-0601-4190-96a7-65d7c427a725/templates