MindsDB home page
Search...
⌘K
Ask AI
Login
Get Started
Get Started
Search...
Navigation
Manipulate Data in Tables, Views, and Files
Remove a Table
Documentation
SQL API
SDKs
REST API
Integrations
Contribute
FAQs
Join our Slack
GitHub
SQL API
Overview
MindsDB SQL Syntax
Get Started
Integrate Data Sources
Integrate AI Engines
Create Projects
Deploy Models
Get Predictions
Manipulate Data in Tables, Views, and Files
Create a Table
Remove a Table
Query a Table
Native Queries
Update a Table
Insert Into a Table
Join Tables On
Delete From a Table
Create a View
Remove a View
Query a View
Upload a File
Remove a File
Query a File
Automate Workflows with Jobs
Automate Workflows with Triggers
Customize Chatbots with Agents
On this page
Description
Syntax
Manipulate Data in Tables, Views, and Files
Remove a Table
Description
The
DROP TABLE
statement deletes a table or a file.
Please note that this feature is not yet implemented for tables from connected data sources.
Syntax
Here is the syntax:
Copy
Ask AI
DROP
TABLE
table_name;
And for files:
Copy
Ask AI
DROP
TABLE
files
.
file_name
;
On execution, we get:
Copy
Ask AI
Query successfully completed
Please note that the uploaded files are tables as well. So to remove an uploaded file, use this
DROP TABLE
statement.
Suggest edits
Raise issue
Create a Table
Query a Table
Assistant
Responses are generated using AI and may contain mistakes.