Delete metadata template

delete
https://api.box.com/2.0
/metadata_templates/:scope/:template_key/schema

Delete a metadata template and its instances. This deletion is permanent and can not be reversed.

Request

application/json

Path Parameters

stringin pathrequired
enterprise_27335

The scope of the metadata template

Value is one of "global", "enterprise_<id>"

stringin pathrequired
blueprintTemplate

The name of the metadata template

Response

none

Returns an empty response when the metadata template is successfully deleted.

application/jsonClient Error

Request body contains an invalid metadata schema.

application/jsonClient Error

Request body contains a scope that the user is not allowed to create a template for.

You can now try out some of our APIs live, right here in the documentation.
Log In

Request Example

cURL
curl -X DELETE https://api.box.com/2.0/metadata_templates/enterprise_27335/blueprintTemplate/schema \
     -H "Authorization: Bearer <ACCESS_TOKEN>"
Java
MetadataTemplate.deleteMetadataTemplate(api, "enterprise", "templateName");
Python
client.metadata_template('enterprise', 'employeeRecord').delete()
Node
client.metadata.deleteTemplate('enterprise', 'testtemplate', callback);