public function reset( $_, $assoc_args ) {
		WP_CLI::confirm( "Are you sure you want to reset the '" . DB_NAME . "' database?", $assoc_args );

		$mysql_args = self::get_dbuser_dbpass_args( $assoc_args );

		self::run_query( sprintf( 'DROP DATABASE IF EXISTS `%s`', DB_NAME ), $mysql_args );
		self::run_query( self::get_create_query(), $mysql_args );

		WP_CLI::success( 'Database reset.' );
	}
public function reset( $_, $assoc_args ) {
		WP_CLI::confirm( "Are you sure you want to reset the '" . DB_NAME . "' database?", $assoc_args );

		$mysql_args = self::get_dbuser_dbpass_args( $assoc_args );

		self::run_query( sprintf( 'DROP DATABASE IF EXISTS `%s`', DB_NAME ), $mysql_args );
		self::run_query( self::get_create_query(), $mysql_args );

		WP_CLI::success( 'Database reset.' );
	}
public function reset ( $ _ , $ assoc_args ) { WP_CLI :: confirm ( "Are you sure you want to reset the '" . DB_NAME . "' database?" , $ assoc_args ) ; $ mysql_args = self :: get_dbuser_dbpass_args ( $ assoc_args ) ; self :: run_query ( sprintf ( 'DROP DATABASE IF EXISTS `%s`' , DB_NAME ) , $ mysql_args ) ; self :: run_query ( self :: get_create_query ( ) , $ mysql_args ) ; WP_CLI :: success ( 'Database reset.' ) ; }
Removes all tables from the database.

Runs `DROP_DATABASE` and `CREATE_DATABASE` SQL statements using
`DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials
specified in wp-config.php.

## OPTIONS

[--dbuser=<value>]
: Username to pass to mysql. Defaults to DB_USER.

[--dbpass=<value>]
: Password to pass to mysql. Defaults to DB_PASSWORD.

[--yes]
: Answer yes to the confirmation message.

## EXAMPLES

$ wp db reset --yes
Success: Database reset.
Removes all tables from the database .