Join a webinar on April 30th: Unlocking Your Data using AI with Box Extract & MCP Server. Register here
Python
client.retention_policies.delete_retention_policy_by_id(retention_policy.id)
{ "type": "error", "status": 400, "code": "item_name_invalid", "message": "Method Not Allowed", "context_info": { "message": "Something went wrong" }, "help_url": "https://developer.box.com/guides/api-calls/permissions-and-errors/common-errors/", "request_id": "abcdef123456" }
Permanently deletes a retention policy.
The access token received from the authorization server in the OAuth 2.0 flow.
The ID of the retention policy.
Returns an empty response when the policy has been deleted.
Was this page helpful?