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 toDEFAULT_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
Examples for the method
PostgreSQL.create_table()
.