cURL
curl --request DELETE \
--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/databases/{name} \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN'{
"name": "<string>",
"table_count": "<string>"
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}Delete a database
DELETE
/
api
/
v1
/
clusters
/
{cluster_id}
/
databases
/
{name}
cURL
curl --request DELETE \
--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/databases/{name} \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN'{
"name": "<string>",
"table_count": "<string>"
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}This endpoint is in Preview and subject to change. Refer to the API support policy for more details.

