Box Developer Documentation
Latest version

Remove device pin

delete
https://api.box.com/2.0
/device_pinners/:device_pinner_id

This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.

Deletes an individual device pin.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
2324234

The ID of the device pin.

Response

none

Returns an empty response when the pin has been deleted.

application/jsonClient error

An unexpected client error.

delete
Remove device pin
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

Learn more about Box SDK versionig strategy.


cURL
curl -i -X DELETE "https://api.box.com/2.0/device_pinners/2324234" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Node/TypeScript v10
await client.devicePinners.deleteDevicePinnerById(devicePinnerId);
Python v10
client.device_pinners.delete_device_pinner_by_id(device_pinner_id)
.NET v10
await client.DevicePinners.DeleteDevicePinnerByIdAsync(devicePinnerId: devicePinnerId);
Swift v10
try await client.devicePinners.deleteDevicePinnerById(devicePinnerId: devicePinnerId)
Java v10
client.getDevicePinners().deleteDevicePinnerById(devicePinnerId)
Java v4
BoxDevicePin devicePin = new BoxDevicePin(api, id);
devicePin.delete();
Python v3
device_pin_id = '1111'
client.device_pin(device_pin_id).delete()
print('Device pin deleted!')
.NET v5
await client.DevicePinManager.DeleteDevicePin(id: "11111");
Node v3
client.devicePins.delete('28345')
    .then(() => {
        // deletion succeeded — no value returned
    });