PostgreSQL.drop_table¶
- PostgreSQL.drop_table(table_name, schema_name=None, confirmation_required=True, verbose=False, raise_error=False)[source]¶
Deletes/drops 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
.raise_error (bool) – Whether to raise the provided exception; if
raise_error=False
(default), the error will be suppressed.
See also
Examples for the method
create_table()
.