void deleteTable(String tableName)

Validates and deletes a table in schema.

Source

void deleteTable(String tableName) {
  var table = schema.tableForName(tableName);
  if (table == null) {
    throw new SchemaException("Table $tableName does not exist.");
  }

  schema.removeTable(table);

  if (store != null) {
    commands.addAll(store.deleteTable(table));
  }
}