...
If you like to delete a restore database which is no longer needed.
Info |
---|
title | IMPORTANTYou are only allowed to destroy databases created from a database restore process. |
---|
Table of contents
General usage instructions
...
Step-by-step guide
Show help context
...
Show help example
linenumbers Code Block |
---|
truelanguage | collapse | truetext |
|
~$ r3 db destroy -h
# Response
Destroy Restore-Snapshots/Database Servers of this Environment.
optional arguments:
-h, --help show this help message and exit
--loglevel {INFO,ERROR}
Define Loglevel for Execution (default: INFO)
--db-id DB_ID Destroy Restore-Database Server.
--snapshot-id SNAPSHOT_ID
Destroy Restore-Snapshot.
|
How do delete a restore-database
Obtain the identifier of the database e.g. by listing the available databases usingĀ r3 db list --dbs command
Provide the identifier to the command lineĀ r3 db destroy --db-id as shown in the example.
...
...
Restore-database deletion example
linenumbers Code Block |
---|
truelanguagecollapse | text | true |
|
~$ r3 db destroy --db-id restore-db-2017-10-23-12-45
# Response
This is a destructive operation. It may cause data loss!
Project: backend Company: root360 Environment: test
+-----------------------------+-------------------------------------------------------------------------+--------+------------------+
| DataBaseIdentifier | Endpoint | Engine | DBInstanceStatus |
+-----------------------------+-------------------------------------------------------------------------+--------+------------------+
| restore-db-2017-10-23-12-45 | restore-db-2017-10-23-12-45.cw8zdc1gbk6g.eu-central-1.rds.amazonaws.com | mysql | deleting |
+-----------------------------+-------------------------------------------------------------------------+--------+------------------+ |
Related articles
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | KB |
---|
sort | modified |
---|
showSpace | false |
---|
|
...
| reverse | true |
---|
type | page |
---|
cql | label in ( "database" , "snapshot" , "delete" , "how-to" , "backup" , "destroy" ) and type = "page" and space = "KB" |
---|
labels | how-to delete destroy database backup snapshot |
---|
|