---
title: "Delete channel data"
method: POST
path: "/{WSID}/{version}/profiles/{distinct_id}/channel/delete"
tags: ["Manage User Profiles"]
---

# Delete channel data

`POST /{WSID}/{version}/profiles/{distinct_id}/channel/delete`

This API enables you to delete existing data for all channels. You can use either of the following approaches:

- **Option 1:** Use the `channel` key in the payload to delete all tokens in the specified channel.
- **Option 2:** Use the `push` and `inapp` keys in the payload to delete specific tokens in these channels.

**Note:** You can use either option 1 or option 2. It is not allowed to use both approaches in one request.

## Path parameters

- `WSID` string, required
- `version` 'live' | 'test', required
- `distinct_id` string, required

## Request body

- union
  - object
    - `channel` string[], required — Enter all channels for which you wish to delete the data. For example: `sms`, `whatsapp`, `email`, `slack`, `discord`, `teams`, `voice``push`, `inapp`.
  - object
    - `inapp` string[], required — Enter the tokens to delete from within the InApp channel.
    - `push` string[], required — Enter the tokens to delete from within the Push channel.

## Response `200`

Profile updated successfully

- object
  - `_message` string, required
  - `status` string, required

## Other responses

- `400` — Distinct ID or channel data does not exist
- `401` — API Key or Workspace ID is invalid. User is unauthorised.

---

[API](https://skmtc.net/fynoio/apis/fyno-rest-api.md) · [All operations](https://skmtc.net/fynoio/apis/fyno-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fynoio/fyno-rest-api/revisions/021088e9cb30/schema)
