drop_database

class dbbase.maint.drop_database[source]

Drops a database

Default:

drop_database(config, dbname, superuser=None)

Note that if a superuser is included in the config, that user must have permissions to drop a database.

Parameters
  • config – (str) : Configuration string for the database SQLALCHEMY_DATABASE_URI

  • dbname – (str) : The name of the database.