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.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.broadcasts.remove(
'559ac32e-9ef5-46fb-82a1-b76b840c0f7b',
);
{
"object": "broadcast",
"id": "559ac32e-9ef5-46fb-82a1-b76b840c0f7b",
"deleted": true
}
Remove an existing broadcast.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.broadcasts.remove(
'559ac32e-9ef5-46fb-82a1-b76b840c0f7b',
);
{
"object": "broadcast",
"id": "559ac32e-9ef5-46fb-82a1-b76b840c0f7b",
"deleted": true
}
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.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.broadcasts.remove(
'559ac32e-9ef5-46fb-82a1-b76b840c0f7b',
);
{
"object": "broadcast",
"id": "559ac32e-9ef5-46fb-82a1-b76b840c0f7b",
"deleted": true
}
Was this page helpful?