Have you tried tailing ErrorLog.txt to make sure there are no errors thrown by the collection delete? You might also want to get the http response code via curl so you can see of the response was successful. You can also check your 9040_AccessLog.txt for the response code, which should be a 200 if the request is successful.
From: [email protected] [mailto:[email protected]] On Behalf Of Arnaud Roch Sent: Thursday, August 05, 2010 11:04 AM To: [email protected] Subject: [MarkLogic Dev General] XQuery xdmp:collection-delete issue 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 //Product return $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
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
