MarkLogic Server 11.0 Product Documentation
xdmp:filesystem-file-delete

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

Summary

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

Parameters
pathname Pathname of the file to be deleted.

Required Privileges

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

Usage Notes

This can also be used to delete an empty directory.

Example

  xdmp:filesystem-file-delete("/mydata/datafiles/oldfile.txt")
  => ()
Powered by MarkLogic Server | Terms of Use | Privacy Policy