Hi Ram,

Sounds like you are looking for a pattern match on the uri. I would recommend 
cts:uri-match for that purpose. Something like this:

for $uri in cts:uri-match('*bla*')
return
               xdmp:document-delete($uri)

It does require the URI lexicon to be enabled in the database properties. You 
can enable it through the admin interface.

Kind regards,
Geert

Van: [email protected] 
[mailto:[email protected]] Namens ramachandran mariappan
Verzonden: dinsdag 12 april 2011 17:09
Aan: General MarkLogic Developer Discussion
Onderwerp: [MarkLogic Dev General] delete files from marklogic DB which starts 
with same word

Hi,

could any one please let me know how to delete files from the marklogic DB 
which starts with same word using a single query.

Thanks & Regards
Ram
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to