既存のリーガルホールドポリシーを削除します。
これは非同期的プロセスです。レスポンスの返された時点では、ポリシーはまだ完全には削除されていません。
curl -i -X DELETE "https://api.box.com/2.0/legal_hold_policies/324432" \
-H "authorization: Bearer <ACCESS_TOKEN>"
await client.legalHoldPolicies.deleteLegalHoldPolicyById(legalHoldPolicy.id);
client.legal_hold_policies.delete_legal_hold_policy_by_id(legal_hold_policy.id)
await client.LegalHoldPolicies.DeleteLegalHoldPolicyByIdAsync(legalHoldPolicyId: legalHoldPolicy.Id);
BoxLegalHoldPolicy policy = new BoxLegalHoldPolicy(api, id);
policy.delete();
client.legal_hold_policy(policy_id='12345').delete()
print('Legal hold policy was deleted!')
await client.LegalHoldPoliciesManager.DeleteLegalHoldPolicyAsync("11111");
client.legalHoldPolicies.delete('11111')
.then(() => {
// deletion started — no value returned
});
client.legalHolds.delete() { result: Result<Void, BoxSDKError>} in
guard case .success = result else {
print("Error deleting legal hold policy")
return
}
print("Legal hold policy successfully deleted")
}