Delete an existing legal hold policy.
This is an asynchronous process. The policy will not be fully deleted yet when the response returns.
A blank response is returned if the policy was successfully deleted.
An unexpected client error.
curl -X DELETE https://api.box.com/2.0/legal_hold_policies/324432 \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
await client.LegalHoldPoliciesManager.DeleteLegalHoldPolicyAsync("11111");
BoxLegalHoldPolicy policy = new BoxLegalHoldPolicy(api, id);
policy.delete();
client.legal_hold_policy(policy_id='12345').delete()
print('Legal hold policy was deleted!')
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")
}