Join BoxWorks 2024 to discover what's possible with content and AI!
Register now!Remove a legal hold from an item.
This is an asynchronous process. The policy will not be fully removed yet when the response returns.
753465
The ID of the legal hold policy assignment
A blank response is returned if the assignment was successfully deleted.
An unexpected client error.
curl -i -X DELETE "https://api.box.com/2.0/legal_hold_policy_assignments/753465" \
-H "authorization: Bearer <ACCESS_TOKEN>"
await client.legalHoldPolicyAssignments.deleteLegalHoldPolicyAssignmentById(
legalHoldPolicyAssignmentId,
);
client.legal_hold_policy_assignments.delete_legal_hold_policy_assignment_by_id(
legal_hold_policy_assignment_id
)
await client.LegalHoldPolicyAssignments.DeleteLegalHoldPolicyAssignmentByIdAsync(legalHoldPolicyAssignmentId: legalHoldPolicyAssignmentId);
try await client.legalHoldPolicyAssignments.deleteLegalHoldPolicyAssignmentById(legalHoldPolicyAssignmentId: legalHoldPolicyAssignmentId)
BoxLegalHoldAssignment assignment = new BoxLegalHoldAssignment(api, id);
assignment.delete();
assignment_id = '1111'
client.legal_hold_policy_assignment(assignment_id).delete()
await client.LegalHoldPoliciesManager.DeleteAssignmentAsync("22222");
client.legalHoldPolicies.deleteAssignment('22222')
.then(() => {
// deletion started — no value returned
});
client.legalHolds.deletePolicyAssignment(assignmentId: "1234") { result: Result<Void, BoxSDKError>} in
guard case .success = result else {
print("Error deleting legal hold policy assignment")
return
}
print("Legal hold policy assignment successfully deleted")
}