---
title: "Delete Database by ID"
method: DELETE
path: "/databases/{id}"
tags: ["Databases"]
---

# Delete Database by ID

`DELETE /databases/{id}`

Delete an item by ID

## Path parameters

- `id` string, objectid, required — The ID of the item to delete

## Response `200`

OK

- ControllersResponseGithubModelsDatabase
  - `data` ModelsDatabase — The data to update
    - `_id` string, objectid — ID
    - `active` boolean — Active
    - `active_ts` string, date-time — Active at
    - `cassandra_params` object — Cassandra params
      - `keyspace` string — Keyspace
    - `created_at` string, date-time — Created timestamp
    - `created_by` string, objectid — Created by
    - `data_source` string — Data source
    - `database` string — Database
    - `description` string — Description
    - `error` string — Error
    - `hive_params` object — Hive params
      - `auth` string — Auth
    - `host` string — Host
    - `is_default` boolean
    - `mongo_params` object — Mongo params
      - `auth_mechanism` string — Auth mechanism
      - `auth_source` string — Auth source
    - `name` string — Name
    - `password` string
    - `port` integer — Port
    - `postgres_params` object — Postgres params
      - `ssl_mode` string — SSL mode
    - `redis_params` object — Redis params
      - `db` integer — DB
    - `snowflake_params` object — Snowflake params
      - `account` string — Account
      - `role` string — Role
      - `schema` string — Schema
      - `warehouse` string — Warehouse
    - `status` string — Status
    - `updated_at` string, date-time — Updated timestamp
    - `updated_by` string, objectid — Updated by
    - `uri` string — URI
    - `use_orm` boolean — Use ORM instead of legacy database service (only for MySQL, PostgreSQL, SQL Server)
    - `username` string — Username
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/crawlab-team/apis/crawlab-api.md) · [All operations](https://skmtc.net/crawlab-team/apis/crawlab-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crawlab-team/crawlab-api/versions/c7a4715c1f13/schema)
