Latest version

Unassign legal hold policy

delete
https://api.box.com/2.0
/legal_hold_policy_assignments/:legal_hold_policy_assignment_id

Remove a legal hold from an item.

This is an asynchronous process. The policy will not be fully removed yet when the response returns.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

Response

none

A blank response is returned if the assignment was successfully deleted.

application/jsonClient error

An unexpected client error.

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

Request Example

cURL
curl -i -X DELETE "https://api.box.com/2.0/legal_hold_policy_assignments/753465" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
TypeScript Gen
await client.legalHoldPolicyAssignments.deleteLegalHoldPolicyAssignmentById(
  legalHoldPolicyAssignmentId,
);
Python Gen
client.legal_hold_policy_assignments.delete_legal_hold_policy_assignment_by_id(
    legal_hold_policy_assignment_id
)
.NET Gen
await client.LegalHoldPolicyAssignments.DeleteLegalHoldPolicyAssignmentByIdAsync(legalHoldPolicyAssignmentId: legalHoldPolicyAssignmentId);
Swift Gen (Beta)
try await client.legalHoldPolicyAssignments.deleteLegalHoldPolicyAssignmentById(legalHoldPolicyAssignmentId: legalHoldPolicyAssignmentId)
Java
BoxLegalHoldAssignment assignment = new BoxLegalHoldAssignment(api, id);
assignment.delete();
Python
assignment_id = '1111'
client.legal_hold_policy_assignment(assignment_id).delete()
.NET
await client.LegalHoldPoliciesManager.DeleteAssignmentAsync("22222");
Node
client.legalHoldPolicies.deleteAssignment('22222')
	.then(() => {
		// deletion started — no value returned
	});
iOS
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")
}