---
title: "Delete one version of a script."
method: DELETE
path: "/scripts/{scriptUploadId}/versions/{versionId}"
tags: ["Scripts"]
---

# Delete one version of a script.

`DELETE /scripts/{scriptUploadId}/versions/{versionId}`

## Request

- Base URL: `https://docs.sleeperhit.studio/api/v1`
- URL: `https://docs.sleeperhit.studio/api/v1/scripts/{scriptUploadId}/versions/{versionId}`
- Auth: HTTP bearer

The Writers Lab's "Only version N", through its core: deletes ONE version and what is scoped to it (character art, table reads and their share links, coverage, conversations); the other versions stay. Requires `confirmed: true` (`?confirmed=true` or a JSON body). Refused with 409 `script_in_use` (`details.uses`) while something live depends on this version — a release in the feed whose read performs it, a running job, an episode draft, a season-run slot, a pitch deck or a trailer — and with 409 `script_state_invalid` for the script's only version (DELETE /scripts/{scriptId} deletes the whole script). 404 `script_not_found` when the version is not one of this script's. Banked audio stays in My Library. Irreversible. Free.

## Query parameters

- `confirmed` boolean

## Response `200`

Deleted.

- ScriptVersionDeleteResponse
  - `deleted` true, required
  - `scriptId` string, required
  - `scriptUploadId` string, required
  - `versionNumber` integer, required
  - `remainingVersions` integer, required

## Other responses

- `400`: Request payload failed validation. The error message names the offending field.
- `401`: Missing, malformed, revoked, or expired API key.
- `403`: API key is valid but lacks the scope, is blocked by IP allowlist, or the account is disabled.
- `404`: The named project or source does not exist or is owned by another account.
- `409`: Something live still depends on this version (`script_in_use`, `details.uses`), or it is the script's only version (`script_state_invalid`).
- `429`: Rate limit for this API key + IP + route family was exceeded.
- `500`: The API failed unexpectedly. Safe to retry with the same Idempotency-Key.

---

[API](https://skmtc.dev/sleeperhit/apis/sleeper-hit-studio-story-api.md) · [All operations](https://skmtc.dev/sleeperhit/apis/sleeper-hit-studio-story-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sleeperhit/apis/sleeper-hit-studio-story-api/revisions/64c1102ccb2f?raw)
