Skip to main content
DELETE
AhaSend Go SDK
The AhaSend API deletes one list. Access requires lists:delete. After the delete, the list cannot be read and adds no recipients to any campaign. The API keeps every membership of the list, so the record that a contact unsubscribed from the list or reported it as spam is not lost. These memberships cannot be read either: the list answers 404, and it does not appear in List Contact’s Lists. The contacts themselves stay. A campaign that still needs the list blocks the delete with 409. Campaigns in draft, validating, scheduled, sending, paused or waiting_for_review block it. Campaigns in sent, failed or canceled do not. A second delete of the same list answers 404.

Authorizations

Authorization
string
header
required

API key for authentication. Non-empty Security Requirement values are AhaSend API-key roles. Roles listed within one requirement object are jointly required; separate requirement objects are alternatives.

Path Parameters

account_id
string<uuid>
required

Account ID

list_id
string<uuid>
required

List ID

Response

List deleted

message
string
required

Success message