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
}
Remove an existing broadcast.
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}
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 { 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
}