import { Resend } from 'resend';

const resend = new Resend('re_123456789');

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

Broadcasts API is currently in private beta and only available to a limited number of users. Reach out if you're interested in testing this feature.

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

broadcast_id
string
required

The broadcast ID.

import { Resend } from 'resend';

const resend = new Resend('re_123456789');

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