MarkLogic 10 Product Documentation
xdmp:filesystem-directory-delete

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

Summary

Deletes the directory specified by pathname. Returns the empty sequence upon success.

Parameters
pathname Pathname of the directory to be deleted.

Required Privileges

http://marklogic.com/xdmp/privileges/xdmp-filesystem-directory-delete

Usage Notes

The directory must be empty in order to delete it.

Example

xdmp:filesystem-directory-delete("/mydata/datafiles/olddir")
=> ()
Powered by MarkLogic Server | Terms of Use | Privacy Policy