API Reference
Delete topic
DELETE /topics/:id — delete a topic and all per-contact subscription state for it.
DELETE
/topics/:idPath parameters
topic_idstringrequiredThe topic ID.
import { MailBlastr } from 'mailblastr';
const mb = new MailBlastr('mb_xxxxxxxxx');
const { data, error } = await mb.topics.remove('topic_9a2f...');
console.log({ data, error });Response
{ "object": "topic", "id": "topic_9a2f...", "deleted": true }