---
title: "Delete a version"
method: DELETE
path: "/v1/spaces/{spaceId}/versions/{versionId}"
tags: ["Versions"]
---

# Delete a version

`DELETE /v1/spaces/{spaceId}/versions/{versionId}`

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/spaces/{spaceId}/versions/{versionId}`
- Auth: HTTP bearer

Permanently deletes a version and its files. Versions referenced by a channel cannot be deleted; promote another version first. A publishing API key without version-administration permission may delete only versions that same key created.

## Path parameters

- `spaceId` string, required
- `versionId` string, required

## Response `204`

The version was deleted.

---

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