Merran documentation API & integrations
Delete a file sent to the assistant
DELETE
/api/assistant/files/{fileId}
const url = 'http://localhost:3000/api/assistant/files/4f1c2a9e7b3d5f6a8c0e1b2d';const options = { method: 'DELETE', headers: {cookie: 'merran.session_token=<merran.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:3000/api/assistant/files/4f1c2a9e7b3d5f6a8c0e1b2d \ --cookie merran.session_token=<merran.session_token>For one taken out of a message before it’s sent. A message it’s already in says it’s gone. One that’s already gone is fine. With an API key, it needs the assistant: write permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”fileId
required
string
Example
4f1c2a9e7b3d5f6a8c0e1b2dResponses
Section titled “Responses”Deleted.
Not signed in.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}Not allowed.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}© 2026 Kyle Johnson. Documentation: CC BY 4.0. Merran: AGPL-3.0-or-later.