Syntax

SQL Delete a Table Syntax

In SQL, delete a table: removes a table and all its data — DROP TABLE users;

Quick Answer

Syntax
DROP TABLE users;
SQLSyntax

Delete a Table

Code example
DROP TABLE users;

Removes a table and all its data.

Learn More

How to delete a table in SQL

  1. Open your SQL file or editor.
  2. Copy the example, then replace its sample names and values for your code.

SQL Delete a Table Syntax

Use DROP TABLE users;.

Related Syntax References

Frequently asked questions

What is the SQL syntax for delete a table?

Use this pattern: DROP TABLE users;

Can I copy this SQL code example?

Yes. Use Copy code and adapt the example to your program.

Is this SQL syntax different on Mac or Windows?

No. The language syntax is the same across operating systems.

Official source · How we verify