DELETE
/metadata_taxonomies/{namespace}/{taxonomy_key}Remove metadata taxonomy
Delete a metadata taxonomy. This deletion is permanent and cannot be reverted.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
namespacestringrequired
The namespace of the metadata taxonomy.
taxonomy_keystringrequired
The key of the metadata taxonomy.
204Returns an empty response when the metadata taxonomy is successfully deleted.
400Returned if the request parameters or body is not valid.
* `bad_request` when the body does not contain a valid request. In many
cases this response will include extra details on what fields are missing.
typestringoptional
The value will always be `error`.
statusintegeroptional
The HTTP status of the response.
codestringoptional
A Box-specific error code.
messagestringoptional
A short message describing the error.
context_infoobjectoptional
A free-form object that contains additional context
about the error. The possible fields are defined on
a per-endpoint basis. `message` is only one example.
help_urlstringoptional
A URL that links to more information about why this error occurred.
request_idstringoptional
A unique identifier for this response, which can be used
when contacting Box support.
403Returned when the user does not have the permission to delete the metadata
taxonomy. This can happen for a few reasons, most commonly when the user
does not have (co-)admin permissions, or the user doesn't have access to
the provided namespace.
typestringoptional
The value will always be `error`.
statusintegeroptional
The HTTP status of the response.
codestringoptional
A Box-specific error code.
messagestringoptional
A short message describing the error.
context_infoobjectoptional
A free-form object that contains additional context
about the error. The possible fields are defined on
a per-endpoint basis. `message` is only one example.
help_urlstringoptional
A URL that links to more information about why this error occurred.
request_idstringoptional
A unique identifier for this response, which can be used
when contacting Box support.
404Returned if the metadata taxonomy does not exist.
typestringoptional
The value will always be `error`.
statusintegeroptional
The HTTP status of the response.
codestringoptional
A Box-specific error code.
messagestringoptional
A short message describing the error.
context_infoobjectoptional
A free-form object that contains additional context
about the error. The possible fields are defined on
a per-endpoint basis. `message` is only one example.
help_urlstringoptional
A URL that links to more information about why this error occurred.
request_idstringoptional
A unique identifier for this response, which can be used
when contacting Box support.
defaultAn unexpected client error.
typestringoptional
The value will always be `error`.
statusintegeroptional
The HTTP status of the response.
codestringoptional
A Box-specific error code.
messagestringoptional
A short message describing the error.
context_infoobjectoptional
A free-form object that contains additional context
about the error. The possible fields are defined on
a per-endpoint basis. `message` is only one example.
help_urlstringoptional
A URL that links to more information about why this error occurred.
request_idstringoptional
A unique identifier for this response, which can be used
when contacting Box support.
Error handling
A 400 is returned: Returned if the request parameters or body is not valid.
bad_requestwhen the body does not contain a valid request. In many cases this response will include extra details on what fields are missing. A 403 is returned: Returned when the user does not have the permission to delete the metadata taxonomy. This can happen for a few reasons, most commonly when the user does not have (co-)admin permissions, or the user doesn't have access to the provided namespace. A 404 is returned: Returned if the metadata taxonomy does not exist. Any other status is an error: An unexpected client error.