1 database.inc db_drop_table($table)

Drops a table.

Parameters

string $table: The table to be dropped.

Return value

bool: TRUE if the table was successfully dropped, FALSE if there was no table by that name to begin with.

Related topics

File

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

Code

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