drop_table

drop_table(table_name: str, schema: Optional[str] = None, **kw: Any) → None

Issue a “drop table” instruction using the current migration context.

e.g.:

drop_table("accounts")

Parameters:

  • table_name – Name of the table
  • schema – Optional schema name to operate within. To control quoting of the schema outside of the default behavior, use the SQLAlchemy construct quoted_name.
  • **kw – Other keyword arguments are passed to the underlying sqlalchemy.schema.Table object created for the command.