provider segmenting contactsSegmenting Contacts DELETE /marketing/segments/{segment_id}
@utdk/sendgrid /marketing/segments/{segment_id}
Delete Segment
**This endpoint allows you to delete a segment by `segment_id`.** Note that deleting a segment does not delete the contacts associated with the segment by default. Contacts associated with a deleted segment will remain in your list of all contacts and any other segments they belong to.
segment_id path required
string

Try it

Authentication
Configure credentials for Email Activity (beta)
deleteMarketingSegmentsSegmentId
DELETE/marketing/segments/{segment_id}
**This endpoint allows you to delete a segment by `segment_id`.** Note that deleting a segment does not delete the contacts associated with the segment by default. Contacts associated with a deleted segment will remain in your list of all contacts and any other segments they belong to.

Parameters

required

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sendgrid from '@utdk/sendgrid';

await sendgrid.deleteMarketingSegmentsSegmentId()