Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt
hiddentrue

If you like to delete a restore database which is no longer needed.

Preconditions

General usage instructions

The general usage instructions for the cloud management tool suite r3 can be found here.

Step 1 - Show help context

Usage of r3 db destrdestroy

Code Block
languagebash
~$ 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.

Step 2 - How do delete a restore-database?

  1. Obtain the identifier of the database e.g. by listing the available databases using r3 db list --dbs command

  2. Provide the identifier to the command line r3 db destroy --db-id as shown in the example.database restore example

    Code Block
    languagebash
    ~$ 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 tutorials

Filter by label (Content by label)
showLabelsfalse
max5
showSpacefalse
cqllabel in ( "mysql" , "aurora" , "db" , "database" , "backup" , "rds" , "ssh" ) and space = currentSpace ( ) and ancestor = "2014352487"

Related components

Filter by label (Content by label)
showLabelsfalse
max5
showSpacefalse
cqllabel in ( "aurora" , "mysql" , "database" , "db" , "backup" , "rds" , "r3-suite" ) and space = currentSpace ( ) and ancestor = "2014350220"

Status
colourRed
titleExpert

Table of Contents
exclude(Related * | Recommended * |Table of contents).*


Filter by label (Content by label)
showLabelsfalse
max10
sorttitle
showSpacefalse
titleRelated questions
cqllabel in ( "db" , "database" , "backup" , "restore" , "snapshot" ) and ancestor = "2014351598" and space = currentSpace ( )