cURL
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 } '
Delete a directory from an agent’s workspace.
curl -X DELETE "https://api.app.shinzo.ai/v1/agent/agt_abc123/filesystem/directories/workspace/data/exports?recursive=true" \ -H "Authorization: Bearer <jwt_token>"
{ "message": "Directory deleted successfully" }
200
400
recursive
true
401
403
404