Delete Directory
Filesystem
Delete Directory
Delete a directory. Pass recursive=true to remove non-empty directories.
DELETE
Delete Directory
Overview
Removes a directory from the session workspace. By default the directory must be empty — passrecursive=true to remove a non-empty tree. To remove a single file, use DELETE /fs/file instead.
Path Parameters
Browser session ID (UUID).
Query Parameters
Workspace-relative directory path to delete.
When
true, delete the directory and all its contents. When false, the call fails with 409 if the directory is non-empty.Example Request
Response
Success Response (204)
No content.Error Responses
| Status | Description |
|---|---|
400 | Invalid path. |
401 | Unauthorized — invalid or missing API key. |
404 | Session or directory not found. |
409 | Directory is not empty and recursive was not set, or target is not a directory (ENOTDIR). |