/v1/workspaces/{workspace_id}/recipients/{external_id}/devices/{device_id}AuthRemove a device
Deletes the device (call it when the user signs out on that device). Pushes stop at once.
Path parameters
workspace_id*string · uuidId of the workspace.
device_id*string · uuidId of the device.
external_id*stringYour user id for the recipient (URL-encoded): 1-255 of `A-Z a-z 0-9 . _ : @ | -`.
Response · 204
Removed.
Example
Request
DELETE https://api.notify.productcraft.co/v1/workspaces/{workspace_id}/recipients/{external_id}/devices/{device_id}
Authorization: Bearer YOUR_TOKENimport { Notify } from "@productcraft/notify";
// Reads PRODUCTCRAFT_API_KEY and PRODUCTCRAFT_WORKSPACE_ID from the environment;
// client routes take a recipient token: notify.client({ token })
const notify = new Notify();
await notify.recipients.devices.delete("user_123", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");notify.recipients.devices.delete(externalId, deviceId, options?): void