Add the power of the Box AI API to your custom apps at Content Cloud Summit on May 15

Learn more and register!

Delete retention policy

delete
https://api.box.com/2.0
/retention_policies/:retention_policy_id

Permanently deletes a retention policy.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
982312

The ID of the retention policy.

Response

none

Returns an empty response when the policy has been deleted.

application/jsonClient error

Returns an error if the policy is non-modifiable or the user does not have the required access to perform the action.

application/jsonClient error

Returns an error if the policy is not found.

application/jsonClient error

An unexpected client error.

delete
Delete retention policy
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

TypeScript (Beta)
await client.retentionPolicies.deleteRetentionPolicyById(retentionPolicy.id);
Python (Beta)
client.retention_policies.delete_retention_policy_by_id(retention_policy.id)
.NET (Beta)
await client.RetentionPolicies.DeleteRetentionPolicyByIdAsync(retentionPolicyId: retentionPolicy.Id);