Delete a directory.
Delete one directory with everything inside it: its subdirectories, and every document in them. The documents are removed from the search index and their files from storage as part of the call. There is no undo and nothing is kept.
Read GET /directories/{directoryId} first if the caller needs to know what it is about
to lose: children and documents are exactly what goes with it.
A directory holding many thousands of documents can take longer than the 29 seconds an
request may last. The deletion continues in Galilea, but the caller sees a
timeout rather than the 204, and reads GET /directories to learn how far it came.
Three kinds of directory are never deletable here: the tenant root, the personal
directory of a user, and a project directory, which goes only with its project
(DELETE /projects/{projectId}).
Requires edit permission on the parent of the directory, the same right a rename asks for.
apiKeyX-API-Key<token>API key issued in the Galilea settings.
directoryId*stringThe id of the directory, as returned by GET /directories.
uuidThe directory and its content no longer exist.
curl -X DELETE "https://example.com/directories/7d9030b3-4c0f-4051-9d54-79a6802a0c22"