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.

DELETE
/Analytics/directories/{directoryId}
AuthorizationBearer <token>

JWT Authorization header using Bearer scheme

In: header

Path Parameters

directoryId*string

Folder to delete.

Formatuuid

Query Parameters

moveContentsToDefault?boolean

Move contents to the default folder instead of refusing.

Defaultfalse

Response Body

application/json

curl -X DELETE "https://test.api.speaknode.com/api/Analytics/directories/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "success": true,
  "error": "string",
  "moved_metrics": 0,
  "moved_directories": 0
}