---
raw: true
search:
  tags:
    - Versions
    - DELETE
seo:
  description: >-
    Permanently deletes a version and its files. Versions… Reference for the
    DELETE /v1/spaces/{spaceId}/versions/{versionId} endpoint in the Spacefast
    API.
sidebar:
  label: Delete a version
  badge: DELETE
title: Delete a version
type: openapi-operation
---
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.

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

**Responses**

- `204` — The version was deleted.
