DocsAPI referenceAll pages

DELETE /channels/5a2c9e14-7f3b-4d86-a1e5-3b8d6c0f2a79

Request examples and the documented response.

Back to this endpoint in the API reference

curl

Request

curl -X DELETE "https://api.pagehum.com/v1/channels/5a2c9e14-7f3b-4d86-a1e5-3b8d6c0f2a79" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

JavaScript

Request

const response = await fetch("https://api.pagehum.com/v1/channels/5a2c9e14-7f3b-4d86-a1e5-3b8d6c0f2a79", {
  method: "DELETE",
  headers: { Authorization: `Bearer ${process.env.PAGEHUM_API_KEY}` },
});
const { ok, data, error } = await response.json();
if (!ok) throw new Error(error);

Response

Response

{
  "ok": true,
  "data": {
    "deleted": "5a2c9e14-7f3b-4d86-a1e5-3b8d6c0f2a79"
  }
}