Hi Mike,

I am not seeing this in 7.0-3.  If you try to do a document-delete on a 
directory /test/, I am seeing XDMP-DOCNOTFOUND.

Are you sure you did not create a document at the /test/ uri?

-Danny

-----Original Message-----
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Mike Sokolov
Sent: Thursday, August 28, 2014 7:00 AM
To: MarkLogic Dev General
Subject: [MarkLogic Dev General] possible bug w/directory deletion

The documentation for xdmp:document-delete() says that it deletes a document 
and all its properties *except for the directory property*.

However, the following sequence of queries results in an empty properties 
document (using 7.0-2.3):

xdmp:directory-create("/test/");
xdmp:document-delete("/test/");
xdmp:document-properties("/test/");

with directory creation set to either "manual" or "automatic"

I have a workaround, but I think that is a bug?  However it's in such direct 
contradiction to the documentation that I wonder if I am misreading that.

- Mike
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to