ServerMania logo

Delete Template

To delete a template from the system, use the following request:

DELETE /templates/:id.xml
DELETE /templates/:id.json

XML Request Example

curl -i -X DELETE -u user:userpass --url http://test/templates/12.xml -H'Content-type: application/xml' -H'Accept: application/xml' 

JSON Request Example

curl -i -X DELETE -u user:userpass --url http://test/templates/12.json -H'Content-type: application/json' -H'Accept: application/json'
The system won't delete the template if it is used by any VSs.