Revision [966]

This is an old revision of MarkLogicDel made by DavidLee on 2009-11-25 04:08:37.

 

Mark Logic Command: del

Deletes documents on a Mark Logic server

Synopsis

del [-c uri|-connect uri] document [document ...]

Description

Deletes documents residing on a Mark Logic server.
Documents are specified by the URI used to store the document

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

Example

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

ml:del test.xml


To delete a directory use deldir

Implementation


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\")"
done








MarkLogic Extension Module

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