---
title: "Deletes a feature from the space"
method: DELETE
path: "/spaces/{spaceId}/features/{featureId}"
tags: ["Write Features"]
---

# Deletes a feature from the space

`DELETE /spaces/{spaceId}/features/{featureId}`

Deletes an existing feature.

## Path parameters

- `spaceId` string, required
- `featureId` string, required

## Query parameters

- `context` 'default' | 'extension' | 'super'
- `versionRef` string

## Response `204`

An empty response as a result of a user-request with accepted MIME type application/x-empty.

## Other responses

- `401` — Unauthorized to perform the request.
- `403` — Forbidden request. Insufficient rights to perform the request.
- `404` — Not found.

## Changes

- **2025-09-08** `f8364de657ab` — 1 info
  - added the new optional `query` request parameter `versionRef`
- **2024-02-05** `539d9580be99` — 1 breaking
  - for the `query` request parameter `versionRef`, default value `main:HEAD` was added
- **2023-07-24** `ecac6e795632` — 1 info
  - added the media type `application/x-empty` for the response with the status `204`
- **2023-07-24** `15451501d2f4` — 1 breaking
  - removed the media type `application/x-empty` for the response with the status `204`
- **2023-07-03** `fb8e107462aa` — 1 warning
  - deleted the `query` request parameter `versionRef`

[Change history](https://skmtc.dev/here/apis/here-xyz-hub/changes/spaces/:spaceId/features/:featureId/delete.md)

---

[API](https://skmtc.dev/here/apis/here-xyz-hub.md) · [All operations](https://skmtc.dev/here/apis/here-xyz-hub/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/here/here-xyz-hub/revisions/1c6c6a2bcac9/schema)
