Loading TOC...

MarkLogic 12 EA 1 Product Documentation
xdmp:directory-delete

xdmp:directory-delete(
   $uri as xs:string
) as empty-sequence()

Summary

Deletes a directory and all of its child and descendant documents and directories from the database.

Parameters
uri The URI of the directory to be deleted.

Usage Notes

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.

Example

xdmp:directory-delete("http://example.com/")

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.