Skip to main content

Delete Campaign

Delete a campaign. Only draft and cancelled campaigns can be deleted.

Endpointโ€‹

DELETE /v1/campaigns/{id}

Authenticationโ€‹

Requires an API key with the campaigns:write scope.

Path Parametersโ€‹

ParameterTypeDescription
idintegerThe campaign ID

Example Requestโ€‹

curl -X DELETE "https://app.equipdash.com/api/v1/campaigns/42" \
-H "Authorization: Bearer eqd_live_your_api_key"

Response (204 No Content)โ€‹

Returns an empty response on success.

Errorsโ€‹

StatusCodeDescription
401authentication_requiredNo API key provided
401invalid_api_keyInvalid API key
403insufficient_scopeAPI key lacks campaigns:write scope
404resource_not_foundCampaign not found
422invalid_stateOnly draft or cancelled campaigns can be deleted

To remove a scheduled campaign, unschedule it first โ€” this returns it to draft, after which it can be deleted.