---
title: "Delete A/B test"
method: DELETE
path: "/ab-tests/{abTestId}"
tags: ["A/B Tests"]
---

# Delete A/B test

`DELETE /ab-tests/{abTestId}`

Deletes a campaign A/B test and its variants. Running tests cannot be deleted, and the linked campaign must be in draft or rejected status.

## Path parameters

- `abTestId` string, required

## Response `200`

A/B test deleted

- object
  - `success` boolean

## Other responses

- `400` — Running test, non-campaign test, or non-draft campaign
- `401` — Unauthorized
- `404` — A/B test not found
- `500` — A/B test could not be deleted

---

[API](https://skmtc.net/sequenzy/apis/sequenzy-api.md) · [All operations](https://skmtc.net/sequenzy/apis/sequenzy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sequenzy/sequenzy-api/versions/af1cf9620482/schema)
