FlaresendDocs
Audiences

Delete an audience

Delete an audience. The contacts in it are kept.

DELETE/v1/audiences/{id}API key

Deletes the audience and its membership list. The contacts themselves are not deleted; they stay in the project and in any other audiences.

An audience can't be deleted while a broadcast to it is scheduled or sending. Cancel the broadcast first.

Path parameters

idstringpathrequired

The audience ID.

Response

idstring

The ID of the deleted audience.

Always true.

Errors

StatusCodeWhen
404audience_not_foundNo audience with that ID in this project.
409audience_in_useA broadcast to this audience is scheduled or sending.