Skip to main content
DELETE
/
suppression-groups
/
{groupId}
curl --request DELETE \
  --url 'https://api.autosend.com/v1/suppression-groups/AB12C3' \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Suppression group deleted successfully"
}
curl --request DELETE \
  --url 'https://api.autosend.com/v1/suppression-groups/AB12C3' \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Suppression group deleted successfully"
}

Authorizations

Authorizations
string | header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

groupId
string
required
The unique identifier of the suppression group to delete.

Response

Suppression group deleted successfully
success
boolean
Example: true
message
string
Confirmation message.Example: "Suppression group deleted successfully"

Error Responses

400 - Cannot delete global group
object
Returned when attempting to delete the global suppression group.
{
  "success": false,
  "error": {
    "message": "Cannot delete global suppression group",
    "code": "CANNOT_DELETE_GLOBAL_GROUP",
    "status": 400
  }
}
404 - Suppression group not found
object
Returned when no suppression group with the given ID exists on the project.
{
  "success": false,
  "error": {
    "message": "Suppression group not found",
    "code": "GROUP_NOT_FOUND",
    "status": 404
  }
}