import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.remove(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
{
"object": "automation",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"deleted": true
}
Remove an existing automation.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.remove(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
{
"object": "automation",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"deleted": true
}
npm install resend@6.10.0-preview-workflows.3
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.remove(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
{
"object": "automation",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"deleted": true
}
Was this page helpful?