php bin/console doctrine:database:drop
Drops the configured database
Usage
doctrine:database:drop [--connection [CONNECTION]] [--shard SHARD] [--if-exists] [--force]
Options
--connection The connection to use for this command
--shard The shard connection to use for this command
--if-exists Don't trigger an error, when the database doesn't exist
--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.