...@developer.marklogic.com] Namens Michael Blakeley
Verzonden: donderdag 22 december 2011 8:11
Aan: General MarkLogic Developer Discussion
Onderwerp: Re: [MarkLogic Dev General] How to delete a dir without
deleting its docs?
Have you tried something like this?
xdmp:node-delete(
xdmp:document
2011 18:18
Aan: General MarkLogic Developer Discussion
Onderwerp: Re: [MarkLogic Dev General] How to delete a dir without
deleting its docs?
I did some testing with 5.0-1.2, and it looks like there is a conflict
with maintain-last-modified (not directory last-modified). Turn off
maintain-last-modified
Hi,
I uploaded quite a number of docs, but accidentily forgot to turn off
automatic directory creation. Can I delete the directory nodes without
deleting any documents underneath? I though xdmp:document-delete on a dir
uri should work, but that throws an exception these days. And
Have you tried something like this?
xdmp:node-delete(
xdmp:document-properties($directory-uri))
The xdmp:document-properties call should return the document node for the
directory fragment. The node-delete should delete it, removing the entire
fragment.
-- Mike
On 21 Dec 2011, at 22:53
I think you can just delete them as if they were documents. Because that's all
they are.
-jh-
On Dec 21, 2011, at 10:53 PM, Geert Josten wrote:
Hi,
I uploaded quite a number of docs, but accidentily forgot to turn off
automatic directory creation. Can I delete the directory nodes without
december 2011 8:16
Aan: General MarkLogic Developer Discussion
Onderwerp: Re: [MarkLogic Dev General] How to delete a dir without
deleting its docs?
I think you can just delete them as if they were documents. Because
that's all they are.
-jh-
On Dec 21, 2011, at 10:53 PM, Geert Josten wrote:
Hi,
I
Discussion
Onderwerp: Re: [MarkLogic Dev General] How to delete a dir without
deleting its docs?
Have you tried something like this?
xdmp:node-delete(
xdmp:document-properties($directory-uri))
The xdmp:document-properties call should return the document node for the
directory fragment