API Reference

Delete Automation

DELETE /automations/:id — permanently delete an automation and everything attached to it.

DELETE/automations/:id

Permanently deletes an automation along with all of its steps, connections, enrollments, and runs. This action cannot be undone.

Path parameters
idstringrequired

The ID of the automation to delete.

import { MailBlastr } from 'mailblastr';

const mb = new MailBlastr('mb_xxxxxxxxx');

const { data, error } = await mb.automations.remove('c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd');
console.log({ data, error });

Response

{
  "object": "automation",
  "id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
  "deleted": true
}