ストレージポリ シーの割り当てを削除します。
ユーザーに対するストレージポリシーの割り当てを削除すると、そのユーザーは会社のデフォルトのストレージポリシーを継承します。
このエンドポイントの呼び出しには、24時間につき1ユーザーあたり2回までというレート制限が適用されます。
curl -i -X DELETE "https://api.box.com/2.0/storage_policy_assignments/932483" \
-H "authorization: Bearer <ACCESS_TOKEN>" \
-d '{
"items": {
"type": "storage_policy",
"id": "1434325"
}
}'
await client.storagePolicyAssignments.deleteStoragePolicyAssignmentById(
storagePolicyAssignment.id,
);
client.storage_policy_assignments.delete_storage_policy_assignment_by_id(
storage_policy_assignment.id
)
await client.StoragePolicyAssignments.DeleteStoragePolicyAssignmentByIdAsync(storagePolicyAssignmentId: storagePolicyAssignment.Id);
BoxStoragePolicyAssignment assignment = new BoxStoragePolicyAssignment(api, "dXNlcl8xMjM0");
assignment.delete();
client.storage_policy_assignment(assignment_id='12345').delete()
print('The storage policy assignment was successfully delete!')
client.storagePolicies.removeAssignment('dXNlcl8yMjIyMg==')
.then(() => {
// deletion succeeded — no value returned
});
client.storagePolicies.deleteAssignment(storagePolicyAssignmentId: "22222") { result: Result<Void, BoxSDKError>} in
guard case .success = result else {
print("Error deleting storage policy assignment")
return
}
print("Storage policy assignment is successfully deleted.")
}