Docs
Audience · Segments

Delete Segment

Delete a segment and its contacts.

DELETE/audiences/{audience_id}

Path Parameters

audience_idstringrequired
Segment ID.
import { Resend } from 'resend';

const client = new Resend('pw_xxxxxxxxx');

const { data, error } = await client.audiences.remove('{audience_id}');
Try itDELETE/audiences/%7Baudience_id%7D

No key yet? Create one in the dashboard.