cURL
curl --request DELETE \ --url https://api.planetscale.com/v1/organizations/{organization}/databases/{database} \ --header 'Authorization: <api-key>'
A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
Service Token Accesses delete_database
delete_database
OAuth Scopes
delete_databases
The name of the organization the database belongs to
The name of the database
Deletes a database
Was this page helpful?