DROP
statement.
DROP
statement will also delete all existing records from the table.DROP
statement is as follows:
table_name
defines which table you want to remove.IF EXISTS
is an optional parameter used to ensure no error occurs if the table does not exist.DROP
example below is executed in the public
schema. You can also drop a table from another specific schema.
Click here for more info.IF EXISTS
option.