php bin/console doctrine:database:drop
Drops the configured database
Usage
doctrine:database:drop [-s|--shard SHARD] [-c|--connection [CONNECTION]] [--if-exists] [-f|--force]
Options
-s, --shard The shard connection to use for this command
-c, --connection The connection to use for this command
--if-exists Don't trigger an error, when the database doesn't exist
-f, --force Set this parameter to execute this action
Help
The doctrine:database:drop command drops the default connections database:
php bin/console doctrine:database:drop
The --force parameter has to be used to actually drop the database.
You can also optionally specify the name of a connection to drop the database for:
php bin/console doctrine:database:drop --connection=default
Be careful: All data in a given database will be lost when executing this command.