Join BoxWorks 2024 to discover what's possible with content and AI!
Register now!Removes a retention policy assignment applied to content.
1233123
The ID of the retention policy assignment.
Returns an empty response when the policy assignment is successfully deleted.
Returns an error when the assignment relates to a retention policy that cannot be modified.
Returns an error when the retention policy assignment does not exist.
An unexpected client error.
await client.retentionPolicyAssignments.deleteRetentionPolicyAssignmentById(
retentionPolicyAssignment.id,
);
client.retention_policy_assignments.delete_retention_policy_assignment_by_id(
retention_policy_assignment.id
)
await client.RetentionPolicyAssignments.DeleteRetentionPolicyAssignmentByIdAsync(retentionPolicyAssignmentId: retentionPolicyAssignment.Id);
try await client.retentionPolicyAssignments.deleteRetentionPolicyAssignmentById(retentionPolicyAssignmentId: retentionPolicyAssignment.id)
BoxRetentionPolicyAssignment assignment = new BoxRetentionPolicyAssignment(api, id);
assignment.delete();
client.retentionPolicies.deleteAssignment('12345')
.then(() => {
// deletion succeeded — no value returned
});
client.retentionPolicy.deleteAssignment(assignmentId: "123456") { result in
guard case let .success = result else {
print("Error deleting retention policy assignment")
return
}
print("Retention policy assignment was deleted")
}