Skip to content

mongodb drop-database

Delete mongodb database

Description

Delete the database provided from the server

Synopsis

mongodb drop-database
    [--site <site>]
    <database>

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

database - (string)

     Name of the database
     Example: "database-1"
     Default: _None_      Attributes: required

Examples

Input:

! mongodb drop-database "test-database-1"
Output:
Database "test-database-1" is deleted

Access Control

To use this command, you need access to the following:

Field Value
Action "delete"
Service Type "mongodb"
Service Instance
Namespace
Object Type "database"
Object ID database

Please see Access Control for details.