php bin/console doctrine:schema:drop
Executes (or dumps) the SQL needed to drop the current database schema
Usage
doctrine:schema:drop [--em EM] [--dump-sql] [-f|--force] [--full-database]
Options
--em Name of the entity manager to operate on
--dump-sql Instead of trying to apply generated SQLs into EntityManager Storage Connection, output them.
-f, --force Don't ask for the deletion of the database, but force the operation to run.
--full-database Instead of using the Class Metadata to detect the database table schema, drop ALL assets that the database contains.
Help
Processes the schema and either drop the database schema of EntityManager Storage Connection or generate the SQL output.
Beware that the complete database is dropped by this command, even tables that are not relevant to your metadata model.
Hint: If you have a database with tables that should not be managed
by the ORM, you can use a DBAL functionality to filter the tables and sequences down
on a global level:
$config->setFilterSchemaAssetsExpression($regexp);