# Delete Campaign Variation

DELETE /api/v2/projects/{projectId}/email-campaigns/{campaignId}/variations/{messageId}

Deletes one variation from a draft or paused campaign. The campaign must keep at least one variation. Deleting the last extra variation on an AB_TEST campaign sets the type back to STANDARD. Returns a permalink that opens the message step in the editor.

## Request

- projectId: string, path, required — Project that owns the campaign.
- campaignId: string, path, required — Campaign that owns the variation.
- messageId: string, path, required — Variation to delete. emailMarketing_getEmailCampaign.messages[].id or emailMarketing_createCampaignVariation.id.

## Response

- 200: Successful response
  - message: string, required
  - permalink: string, required — Dashboard URL that opens this campaign on the message step.
- 400: Invalid input data
- 401: Authorization not provided
- 403: Insufficient access
- 404: Not found
- 500: Internal server error
