curl --request DELETE \
--url https://api.app.shinzo.ai/v1/agent/{agentId}/filesystem/files/{path} \
--header 'Authorization: Bearer <token>'Delete a file from an agent’s workspace.
curl --request DELETE \
--url https://api.app.shinzo.ai/v1/agent/{agentId}/filesystem/files/{path} \
--header 'Authorization: Bearer <token>'curl -X DELETE "https://api.app.shinzo.ai/v1/agent/agt_abc123/filesystem/files/workspace/data/output.txt" \
-H "Authorization: Bearer <jwt_token>"
{
"message": "File deleted successfully"
}
| Code | Description |
|---|---|
200 | File deleted successfully |
401 | Invalid authentication |
403 | Access denied |
404 | Agent or file not found |