Back to Mindsdb

Remove a Table

docs/mindsdb_sql/sql/drop/table.mdx

26.1.0507 B
Original Source

Description

The DROP TABLE statement deletes a table or a file.

<Warning> Please note that this feature is not yet implemented for tables from connected data sources. </Warning>

Syntax

Here is the syntax:

sql
DROP TABLE table_name;

And for files:

sql
DROP TABLE files.file_name;

On execution, we get:

sql
Query successfully completed
<Note> Please note that the uploaded files are tables as well. So to remove an uploaded file, use this `DROP TABLE` statement. </Note>