PostgreSQL.drop_table

PostgreSQL.drop_table(table_name, schema_name=None, confirmation_required=True, verbose=False)

Delete/drop a table.

Parameters
  • table_name (str) – name of a table

  • schema_name (str or None) – name of a schema; when schema_name=None (default), it defaults to DEFAULT_SCHEMA (i.e. 'public')

  • confirmation_required (bool) – whether to prompt a message for confirmation to proceed, defaults to True

  • verbose (bool or int) – whether to print relevant information in console, defaults to False

See also