---
title: "Delete a database"
method: DELETE
path: "/spaces/{space_id}/databases/{database_ref}"
---

# Delete a database

`DELETE /spaces/{space_id}/databases/{database_ref}`

Deletes a database.

## Path parameters

- `space_id` string, required
- `database_ref` string, required

## Response `202`

Database deleted

- Database
  - `id` string, required
  - `name` string, required
  - `status` 'queued' | 'configuring' | 'running' | 'pausing' | 'paused' | 'resuming' | 'deleting' | 'deleted' | 'upgrading' | 'unstable' | 'unknown', required
  - `host` string, required
  - `port` integer, required
  - `type` 'standard' | 'dedicated', required
  - `size` '1x' | '2x' | '4x' | '8x'
  - `storage_mib` integer, nullable
  - `password` string, nullable

## Other responses

- `default` — Error response

## Changes

- **2026-04-17** `a7becb6668ec` — 2 breaking, 1 warning
  - the response property `size` became nullable for the status `202`
  - the `storage_mib` response's property type/format changed from `integer`/`int64` to `integer`/`` for status `202`
  - removed the optional property `code` from the response with the `default` status

[Change history](https://skmtc.dev/timescale/apis/ghost-api/changes/spaces/:space_id/databases/:database_ref/delete.md)

---

[API](https://skmtc.dev/timescale/apis/ghost-api.md) · [All operations](https://skmtc.dev/timescale/apis/ghost-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/timescale/ghost-api/revisions/a7becb6668ec/schema)
