MSSQL.drop_table

MSSQL.drop_table(table_name, schema_name=None, confirmation_required=True, verbose=False, raise_error=False)[source]

Deletes/drops a table.

Parameters:
  • table_name (str) – Name of the table to be deleted.

  • schema_name (str | None) – Name of the schema where the table resides; defaults to DEFAULT_SCHEMA (i.e. 'dbo') if schema_name=None.

  • confirmation_required (bool) – Whether to prompt for confirmation before proceeding; defaults to True.

  • verbose (bool | int) – Whether to print relevant information in the console; defaults to False.

  • raise_error (bool) – Whether to raise the provided exception; if raise_error=False (default), the error will be suppressed.

See also