DELETE
/retention_policies/{retention_policy_id}Delete a retention policy
Deletes a retention policy permanently. Use retention_policy_id to identify the policy you want to remove. A successful response contains no body.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
retention_policy_idstringrequired
The unique identifier of the retention policy to delete.
204Returns an empty response after the retention policy has been deleted.
403Returned when the policy is non-modifiable or the authenticated user does not have the required access.
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 when no retention policy exists with the specified `retention_policy_id`.
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.
defaultReturns an 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 403 is returned when the policy is non-modifiable or the authenticated user lacks the required access. A 404 is returned when no policy exists with the specified retention_policy_id. Deletion is permanent, so verify the identifier before submitting the request.