Skip to main content
DELETE
/
v1
/
agent
/
{agentId}
/
filesystem
/
directories
/
{path}
Delete Directory
curl --request DELETE \
  --url https://api.app.shinzo.ai/v1/agent/{agentId}/filesystem/directories/{path} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "recursive": true
}
'

Documentation Index

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

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

Authentication

Requires JWT token or Platform API key.
agentId
string
required
Agent UUID
path
string
required
Directory path within the agent workspace (wildcard segment)
recursive
boolean
Delete the directory and all its contents recursively

Example Request

curl -X DELETE "https://api.app.shinzo.ai/v1/agent/agt_abc123/filesystem/directories/workspace/data/exports?recursive=true" \
  -H "Authorization: Bearer <jwt_token>"

Response

{
  "message": "Directory deleted successfully"
}

Status Codes

CodeDescription
200Directory deleted successfully
400Directory is not empty and recursive is not set to true
401Invalid authentication
403Access denied
404Agent or directory not found