Storage

Delete one or more files from project storage

Deletes one or more files from the project's storage bucket. Non-existent files are silently skipped (Supabase-compatible behavior). The response contains FileObject entries only for files that were successfully deleted.

Compatible with the Supabase Storage remove API.

Who may delete what: the project's secret key (or service token) may delete any file. A signed-in end user may delete only files they uploaded themselves. If any existing path is not the caller's, the request is refused with 403 STORAGE_NOT_OWNER and nothing is deleted.

delete/api/storage/{project_id}/remove

Request

  • Base URL
    https://core.blink.new
  • URL
    https://core.blink.new/api/storage/{project_id}/remove
  • Auth
    HTTP bearer

Path parameters

project_idstring required
Example:my-project-123

Unique identifier for the project

Request body

pathsstring[] required

Array of relative file paths to delete

Example request

{
  "paths": [
    "uploads/old-document.pdf",
    "images/obsolete-avatar.png"
  ]
}

Response

Deletion completed. Returns metadata for each successfully deleted file.

Changes

No recorded changes to this operation across all 1 revision of this API.