[MarkLogic Dev General] XQuery xdmp:collection-delete issue

Arnaud Roch gundounet at hotmail.com
Thu Aug 5 08:04:03 PDT 2010


Hi,
I'm using Ant and I'm trying to delete a files' collection with a xquery file called with curl. (CleanUp.xqy)To test my file I started with CQ and everything was alright with the xquery.Then I tested the file with my browsers (tested on Firefox and Chrome)But when I call this file nothing happen, my  collection is still here.
My CleanUp file :
xquery version "1.0-ml";xdmp:collection-delete("Produtcs")
It's simple.
So i've tried another xquery  to see if it was my CleanUp file or something else :
xquery version "1.0-ml";for $x in //Productreturn $x/ProductId
This one was ok and return what I asked.
So I'm asking myself: Do I need something else with the xdmp function to be execute by a call? Is it possible to execute a deleting xquery, via a browser ?

For my test I tried on CQ before and the deleting query was ok (no more collection). Then I used this http://<servername>:9040/app/<namefile>.xqy in the browser to call them.
Thank you.
Kind regards,Arnaud
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20100805/24acf931/attachment.html 


More information about the General mailing list