PostgreSQL.drop_table¶
- PostgreSQL.drop_table(table_name, schema_name=None, confirmation_required=True, verbose=False)[source]¶
Delete/drop a specified table.
- Parameters:
table_name (str) – Name of the table to be deleted.
schema_name (str | None) – Name of the schema; if
schema_name=None
, it defaults toDEFAULT_SCHEMA
(i.e.,'public'
).confirmation_required (bool) – Whether to prompt for confirmation before proceeding; defaults to
True
.verbose (bool | int) – Whether to print relevant information to the console; defaults to
False
.
See also
Examples for the method
create_table()
.