xdmp.directoryDelete( $uri as String ) as null
Deletes a directory and all of its child and descendant documents and directories from the database.
|$uri||The URI of the directory to be deleted.|
If you delete a directory, the directory and all of its children and descendants (recursively) are deleted, including all child documents and directories. A child document or directory of a given directory is one whose URI begins with the same string as the directory URI.