Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.memorylake.ai/llms.txt

Use this file to discover all available pages before exploring further.

DELETE /openapi/memorylake/api/v1/drives/items/{item_id}
Permanently deletes a file or folder. Deleting a folder also deletes everything inside it, recursively.
This is destructive and irreversible. If the item is a folder, every file and subfolder under it is removed. Confirm with the user before calling this endpoint.
Deleting a file that is referenced by one or more project documents does not automatically remove those documents. Call Remove Documents first if you want the documents to disappear from a project.

Path Parameters

item_id
string
required
Concrete item ID to delete. Your workspace root (MY_SPACE) cannot be deleted.
curl -X DELETE 'https://app.memorylake.ai/openapi/memorylake/api/v1/drives/items/sc-5c6bf0f82d624a20a6fa4696997bdd46:7d8cf1e93f634b31b5' \
  -H 'Authorization: Bearer sk_xxxxxx'

Response

success
boolean
Indicates if the request was successful
message
string
Human-readable status message
{
  "success": true,
  "message": "Operation completed successfully"
}