項目からリーガルホールドを削除します。
これは非同期的プロセスです。レスポンスが返された時点では、ポリシーはまだ完全には削除されていません。
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);
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")
}