Files

Permanently delete a file and all associated data.

Requirements:

  • Delete permission on the document
  • Workspace must allow manual document management (not sync-only)

Public datasets: deleting a public-dataset file requires the instance-admin MANAGE_PUBLIC_DATASET permission. A workspace-scoped API key with read access (company opted in via allow_access_to_public_datasets) can see the file but gets 403, not 404, when attempting to delete it — public datasets are read-only.

Returns 204 (No Content) on success.

delete/api/v3/files/{id}

Request

  • Base URL
    https://api.lighton.ai
  • URL
    https://api.lighton.ai/api/v3/files/{id}
  • Auth
    HTTP bearer

Path parameters

idinteger required

A unique integer value identifying this Document.

Response

File deleted successfully (no content returned)

Changes

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status