Manage Applications

    Unassign storage policy

    delete
    https://api.box.com/2.0
    /storage_policy_assignments/:storage_policy_assignment_id

    Delete a storage policy assignment.

    Deleting a storage policy assignment on a user will have the user inherit the enterprise's default storage policy.

    There is a rate limit for calling this endpoint of only twice per user in a 24 hour period.

    Request

    application/json

    Path Parameters

    stringin pathrequired
    932483

    The ID of the storage policy assignment.

    Response

    none

    Returns an empty response when the storage policy assignment is successfully deleted.

    You can now try out some of our APIs live, right here in the documentation.
    Log In

    Request Example

    cURL
    curl -X DELETE https://api.box.com/2.0/storage_policy_assignments/932483 \
         -H "Authorization: Bearer <ACCESS_TOKEN>"
    Java
    BoxStoragePolicyAssignment assignment = new BoxStoragePolicyAssignment(api, "dXNlcl8xMjM0");
    assignment.delete();
    Python
    client.storage_policy_assignment(assignment_id='12345').delete()
    print('The storage policy assignment was successfully delete!')
    Node
    client.storagePolicies.removeAssignment('dXNlcl8yMjIyMg==')
        .then(() => {
            // deletion succeeded — no value returned
        });