Terminate Astra DB Serverless databases
|
Terminating a database permanently deletes all of its data, including automatic backups. You cannot undo this action. |
Database termination isn’t instantaneous. After you initiate the termination process, the database enters Terminating status while deletion occurs. You receive a notification once termination is complete.
Terminate a database in the Astra Portal
To terminate a database in the Astra Portal, you must have a role with the appropriate permissions, such as the Database Administrator role.
-
In the Astra Portal, click the name of the database that you want to modify.
-
Click Settings, find the Terminate this database section, and then click Terminate Database.
-
To initiate the termination process, enter the database’s name, and then click Terminate Database.
You receive a notification once termination is complete.
Terminate a database programmatically
To programmatically terminate a database, you need an application token that has a role with the appropriate permissions, such as the Database Administrator role.
- Terminate a database with the DevOps API
-
Use
POST /v2/databases/DB_ID/terminateto initiate the termination process for a specific 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"A successful request returns
202 Acceptedand initiates the termination process. You receive a notification once termination is complete.For more information, see Get started with the Astra DevOps API.
- Terminate a database with the Astra CLI
-
See
astra db delete. - Terminate a database with the Data API clients
-
See the Drop a database.