AnalyticsDirectoriesDirectoryid
Deletes a folder. A non-empty one is refused unless moveContentsToDefault is set — metrics carry the history of measured values and are never deleted as a side effect.
AuthorizationBearer <token>
JWT Authorization header using Bearer scheme
In: header
Path Parameters
directoryId*string
Folder to delete.
Format
uuidQuery Parameters
moveContentsToDefault?boolean
Move contents to the default folder instead of refusing.
Default
falseHeader Parameters
x-space-id?string
Space to act in. Omit to use the user's default space. Must be a space the user belongs to, otherwise the request is rejected.
Format
uuidResponse Body
application/json
curl -X DELETE "https://api.speaknode.com/api/Analytics/directories/497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"success": true,
"error": "string",
"moved_metrics": 0,
"moved_directories": 0
}