Deletes an individual device pin.
Returns an empty response when the pin has been deleted.
An unexpected client error.
curl -X DELETE https://api.box.com/2.0/device_pinners/2324234 \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
await client.DevicePinManager.DeleteDevicePin(id: "11111");
BoxDevicePin devicePin = new BoxDevicePin(api, id);
devicePin.delete();
device_pin_id = '1111'
client.device_pin(device_pin_id).delete()
print('Device pin deleted!')
client.devicePins.delete('28345')
.then(() => {
// deletion succeeded — no value returned
});
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")
}