Levain LabsLevain Labs
ApiRaws

Delete Raw By Id

Delete a user-uploaded raw artifact from the workspace.

Delete a user-uploaded raw artifact from the workspace.

The artifact is identified by the source_id returned at upload time. Only artifacts uploaded through POST /api/v1/raws/ are addressable here — artifacts produced by automated ingestion sources are not deletable through the API. Any knowledge base that already ingested this artifact keeps the pages it produced; only the artifact body is removed.

DELETE
/api/v1/raws/{source_id}

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

source_id*Source Id
Formatuuid

Header Parameters

X-API-Key?string|null

Response Body

application/json

curl -X DELETE "https://api.levainlabs.com/api/v1/raws/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}