function drush_sql_drop

8.0.x sql.drush.inc drush_sql_drop()
6.x sql.drush.inc drush_sql_drop()
7.x sql.drush.inc drush_sql_drop()
4.x sql.drush.inc drush_sql_drop()
5.x sql.drush.inc drush_sql_drop()
master sql.drush.inc drush_sql_drop()

Drops all tables in the database.

File

commands/sql/sql.drush.inc, line 432
Drush sql commands

Code

function drush_sql_drop() {
  drush_sql_bootstrap_further();
  $sql = drush_sql_get_class();
  $db_spec = $sql->db_spec();
  if (!drush_confirm(dt('Do you really want to drop all tables in the database !db?', array('!db' => $db_spec['database'])))) {
    return drush_user_abort();
  }
  $tables = $sql->listTables();
  return $sql->drop($tables);
}