Delete a metadata template and its instances. This deletion is permanent and can not be reversed.
"global"
The scope of the metadata template
Value is one of global
,enterprise
"properties"
The name of the metadata template
Returns an empty response when the metadata template is successfully deleted.
Request body does not contain a valid metadata schema.
Request body contains a scope that the user is not allowed to create a template for.
An unexpected client error.
curl -i -X DELETE "https://api.box.com/2.0/metadata_templates/enterprise/blueprintTemplate/schema" \
-H "Authorization: Bearer <ACCESS_TOKEN>"
MetadataTemplate.deleteMetadataTemplate(api, "enterprise", "templateName");
client.metadata_template('enterprise', 'employeeRecord').delete()
client.metadata.deleteTemplate('enterprise', 'testtemplate', callback);
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")
}