MindsDB home page
Search...
⌘K
Ask AI
Login
Get Started
Get Started
Search...
Navigation
Tables, Views, Files
Remove a File
Documentation
SQL API
SDKs
REST API
Integrations
Contribute
FAQs
Join our Slack
GitHub
SDKs
Overview
Mongo-QL
Python SDK
Connect
Databases
ML Engines
Projects
Models
Predictions
Tables, Views, 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
List Views
Upload a File
Remove a File
Query a File
Jobs
JavaScript SDK
On this page
Description
Syntax
Tables, Views, Files
Remove a File
Description
In MindsDB, files are treated as tables. These are stored in the default
files
database. To delete a file, you must save this
files
database into a variable and then, run the
tables.drop()
function on it.
Syntax
Here is the syntax:
Copy
Ask AI
files
=
server
.
get_database
(
'files'
)
files
.
tables
.
drop
(
'file_name'
)
Suggest edits
Raise issue
Upload a File
Query a File
Assistant
Responses are generated using AI and may contain mistakes.