Box Developer Documentation

Join BoxWorks 2024 to discover what's possible with content and AI!

Register now!

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 Gen
await client.retentionPolicies.deleteRetentionPolicyById(retentionPolicy.id);
Python Gen
client.retention_policies.delete_retention_policy_by_id(retention_policy.id)
.NET Gen
await client.RetentionPolicies.DeleteRetentionPolicyByIdAsync(retentionPolicyId: retentionPolicy.Id);
Swift Gen (Beta)
try await client.retentionPolicies.deleteRetentionPolicyById(retentionPolicyId: retentionPolicy.id)