This API enables you to delete a cost template.
The syntax for calling this method is:
DELETE <Base_Url>/costTemplate/{costTemplateId}
A sample API call is as follows:
DELETE https://123.123.123.123/vCenter-CB/api/costTemplate/15
You must have Cost Template Delete privilege on the system.
The API returns a response XML that indicates the status of the operation.
A sample response is provided here.
Error code |
Description |
VCB_ERR_INVALID_COST_TEMPLATE_ID |
Cost template ID is not valid. |