1.16.x database.inc db_drop_table($table)
1.18.x database.inc db_drop_table($table)
1.17.x database.inc db_drop_table($table)

Drops a table.

Parameters

$table: The table to be dropped.

Related topics

File

includes/database/database.inc, line 3018
Core systems for the database layer.

Code

function db_drop_table($table) {
  return Database::getConnection()->schema()->dropTable($table);
}