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
}
Delete Automation
Remove an existing automation.
DELETE
/
automations
/
:automation_id
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
}
Path Parameters
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?
⌘I