Loading TOC...

MarkLogic Server 11.0 Product Documentation
xdmp.filesystemFileDelete

xdmp.filesystemFileDelete(
   pathname as String
) as null

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.filesystemFileDelete("/mydata/datafiles/oldfile.txt");
  => null

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