Use the DROP TABLE command to remove an existing table from a database.
DROP TABLE <table>[,<table>…]
| Input | Description |
|---|---|
| <table> | The name of the table to be dropped. |
| Output | Description |
|---|---|
| DROP TABLE | The table was successfully dropped. |
| ERROR: Relation "name" does not exist | The specified table does not exist in the database. |
You must be the admin user, the owner of the user, or your account must have the Drop privilege for the user who is the owner of the table or for the User object class.
MYDB.SCH1(USER)=> DROP TABLE films, distributors;