Revision [968]

This is an old revision of MarkLogicDeldir made by DavidLee on 2009-11-25 04:46:03.


Mark Logic Command: deldir

Deletes documents on a Mark Logic server


deldir [-c uri|-connect uri] dir [dir ...]


Deletes directories and all documents under that directory residing on a Mark Logic server.
Directories are specified by the URI used to store the document and should end in a /

-connect uri
-c uri
Use the connection string instead of $MLCONNECT
dir uri of the directory to delete

Directories should end in a /


Assuming the prefix "ml" is imported as the marklogic module, delete the test.xml document

ml:deldir /MyDir/

To delete a fileuse del


del is implemented as an xsh script which simply calls query. The source of the script is

import module ml=org.xmlsh.marklogic 
for uri ; do
   ml:query -q "xdmp:document-delete(\"$uri\")"

MarkLogic Extension Module
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki