Delete Files

This page shows you how to delete a file from your Catalog.

WARNING

Please note that once a file is deleted, it cannot be recovered. All related Catalog entries (such as chunks, embeddings, etc.) will also be deleted.

#Delete a File via API

cURL
Python

export INSTILL_API_TOKEN=********
curl -X DELETE 'HOST_URL/v1alpha/catalogs/files?fileUid=FILE_UID' \
--header "Authorization: Bearer $INSTILL_API_TOKEN"

Note that the FILE_UID query parameter must be replaced by the unique identifier (UID) of the file to be deleted.

INFO

If you are using Instill Core as a managed service, set HOST_URL to https://private.instill-ai.com. If you are self-hosting Instill Core, use http://localhost:8080.

#Delete a File via Console

To delete a file from Console, follow these steps:

  1. Launch Console via a local Instill Core deployment at http://localhost:3000, or by selecting the Go to console button in the bottom-left of the Instill Agent interface if you are using Instill Core as a managed service.
  2. Navigate to the Artifacts page using the navigation bar.
  3. Click the Catalog card you wish to delete a file from.
  4. Select Files in the left panel.
  5. Click the Delete button next to the file you wish to delete.