Join the first BoxWorks Hackathon for Good - customers, partners, and the developer community are welcome to participate in the 48 hour Hack to benefit The Nature Conservancy.

Learn more and register!

Remove device pin

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

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

cURL
curl -i -X DELETE "https://api.box.com/2.0/device_pinners/2324234" \
     -H "Authorization: Bearer <ACCESS_TOKEN>"
.NET
await client.DevicePinManager.DeleteDevicePin(id: "11111");
Java
BoxDevicePin devicePin = new BoxDevicePin(api, id);
devicePin.delete();
Python
device_pin_id = '1111'
client.device_pin(device_pin_id).delete()
print('Device pin deleted!')
Node
client.devicePins.delete('28345')
    .then(() => {
        // deletion succeeded — no value returned
    });
iOS
client.devicePins.delete(devicePinId: "12345") { result: Result<Void, BoxSDKError> in
    guard case .success = result else {
        print("Error deleting device pin")
        return
    }

    print("Device Pin successfully deleted")
}