A beta version of the new Box developer documentation site is launching soon! Updated Developer Guides, modern API Reference, and AI-powered search are on the way to help you build with Box faster. Stay tuned for more updates.
Delete a metadata template and its instances. This deletion is permanent and can not be reversed.
globalThe scope of the metadata template.
Value is one of global,enterprise
propertiesThe 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>"await client.metadataTemplates.deleteMetadataTemplate(
'enterprise' as DeleteMetadataTemplateScope,
template.templateKey!,
);client.metadata_templates.delete_metadata_template(
DeleteMetadataTemplateScope.ENTERPRISE, template.template_key
)await client.MetadataTemplates.DeleteMetadataTemplateAsync(scope: DeleteMetadataTemplateScope.Enterprise, templateKey: NullableUtils.Unwrap(template.TemplateKey));try await client.metadataTemplates.deleteMetadataTemplate(scope: DeleteMetadataTemplateScope.enterprise, templateKey: template.templateKey!)client.getMetadataTemplates().deleteMetadataTemplate(DeleteMetadataTemplateScope.ENTERPRISE, template.getTemplateKey())MetadataTemplate.deleteMetadataTemplate(api, "enterprise", "templateName");client.metadata_template('enterprise', 'employeeRecord').delete()client.metadata.deleteTemplate('enterprise', 'testtemplate', callback);