---
title: "Delete experiment"
method: DELETE
path: "/api/experiments/scheduled/{experiment_id}"
tags: ["A/B Tests"]
---

# Delete experiment

`DELETE /api/experiments/scheduled/{experiment_id}`

## Request

- Base URL: `https://go.urbanairship.com`
- URL: `https://go.urbanairship.com/api/experiments/scheduled/{experiment_id}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/airship/apis/airship-api/docs/api/experiments/scheduled/:experiment_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete a scheduled experiment. You can only delete experiments before they start; attempting to delete an experiment that has already started or completed will return an HTTP 405 response ("Method not allowed").

## Response `200`

Returned if the experiment has been successfully deleted.

- object: The response body for a pipeline's deletion request.
  - `ok` boolean, required: Success.
  - `operation_id` string, uuid: A unique string that represents a single API call, used to identify the operation or side effects in reporting and troubleshooting logs.

## Other responses

- `401`: Authentication information (the app key and secret or bearer token) was either incorrect or missing.
- `404`: The requested resource doesn't exist.
- `405`: Returned when a request is made using an HTTP method not supported by the endpoint. For example, sending a DELETE to /api/schedules.

## Changes

- **2025-08-28** `3304568aaadc`: 1 breaking
  - the response's body type changed from no type to `object` for status `200`
  - …this revision’s changelog is incomplete

[Operation history](https://skmtc.dev/airship/apis/airship-api/changes/api/experiments/scheduled/:experiment_id/delete.md)

---

[API](https://skmtc.dev/airship/apis/airship-api.md) - [All operations](https://skmtc.dev/airship/apis/airship-api/llms.txt) - [OpenAPI document](https://skmtc.dev/airship/apis/airship-api/revisions/bd6ab947117a?raw)
