Skip to content

Delete file or directory

DELETE
/v1/sessions/{session_id}/fs/{path}
session_id
required
string

Session ID (prefixed, e.g., sess_…)

path
required
string

File or directory path

recursive
boolean

Delete recursively

Deleted

Response for delete operation

object
deleted
required
boolean

Invalid session ID or directory not empty

Cannot delete readonly file or directory containing readonly files

Internal server error