Skip to main content
DELETE
This endpoint requires an organization admin API key (ASA_ prefix). Standard project API keys cannot access this endpoint.
This action deletes the project and all associated resources (domains, senders, templates, campaigns, contacts). This cannot be undone.

Authorizations

string | header
required
Organization admin API key header of the form Bearer ASA_<key>. Standard project API keys (AS_ prefix) will receive a 403 error.

Path Parameters

string
required
The unique identifier of the project to delete. The project must belong to the authenticated organization.Example: "60d5ec49f1b2c72d9c8b1234"

Response

Project deleted successfully
boolean
Indicates if the request was successfulExample: true
string
Confirmation messageExample: "Project deleted successfully"

Error Responses

object
Returned when using a standard project API key instead of an organization admin API key.
object
Returned when the projectId parameter is not valid.
object
Returned when the project does not exist or does not belong to the organization.
object
Returned when attempting to delete the only remaining project in the organization.