Terminate a database
Terminating a database permanently deletes all of its data, including automatic backups. You can’t undo this action. |
To terminate a database, you must have the appropriate permissions, such as the Database Administrator role. To programmatically terminate databases, you need an application token with sufficient permissions.
-
Astra Portal
-
API/CLI
-
In the Astra Portal navigation menu, click Databases.
-
Find the database you want to delete, click more_vert More, and then select Terminate.
-
To confirm deletion, enter the database’s name, and then click Terminate Database.
You can use the DevOps API, the Data API clients, and the Astra CLI to delete databases programmatically.
For example, you can use the following curl command to delete a database:
curl -sS -L -X POST "https://api.astra.datastax.com/v2/databases/DB_ID/terminate" \
--header "Authorization: Bearer APPLICATION_TOKEN" \
--header "Content-Type: application/json"
For more information, see the Databases API reference.
The database enters Terminating status while deletion occurs. You receive a notification once termination is complete.