Skip to main content
DELETE
/
broadcasts
/
{id}
import { Emailr } from 'emailr';

const emailr = new Emailr('em_xxxxxxxxx');

const { data, error } = await emailr.broadcasts.remove(
  '559ac32e-9ef5-46fb-82a1-b76b840c0f7b',
);
{
  "object": "broadcast",
  "id": "559ac32e-9ef5-46fb-82a1-b76b840c0f7b",
  "deleted": true
}
DELETE https://api.emailr.dev/broadcasts/{id}
You can only delete broadcasts that are in the draft status. In addition, if you delete a broadcast that has already been scheduled to be sent, we will automatically cancel the scheduled delivery and it won’t be sent.

Path Parameters

import { Emailr } from 'emailr';

const emailr = new Emailr('em_xxxxxxxxx');

const { data, error } = await emailr.broadcasts.remove(
  '559ac32e-9ef5-46fb-82a1-b76b840c0f7b',
);
{
  "object": "broadcast",
  "id": "559ac32e-9ef5-46fb-82a1-b76b840c0f7b",
  "deleted": true
}