Remove 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

Bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
global

The scope of the metadata template

Value is one of global,enterprise

stringin pathrequired
properties

The name of the metadata template

Response

none

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

application/jsonClient error

Request body does not contain a valid metadata schema.

application/jsonClient error

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

application/jsonClient error

An unexpected client error.

delete
Remove metadata template
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/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);
iOS
client.metadata.deleteTemplate(
    scope: "enterprise",
    templateKey: "personnelRecord"
) { (result: Result<Void, BoxSDKError>) in
    guard case .success = result {
        print("Error deleting metadata template")
        return
    }

    print("Metadata template deleted")
}