---
title: "Soft-delete an API key."
method: DELETE
path: "/model-hub/api-keys/{id}/"
tags: ["model-hub"]
---

# Soft-delete an API key.

`DELETE /model-hub/api-keys/{id}/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/api-keys/{id}/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

ApiKey inherits from BaseModel, so `instance.delete()` sets:
- deleted=True
- deleted_at=<timestamp>
and excludes it from the default manager (`objects`) queries.

## Response `204`

No Content

## Other responses

- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
