[MarkLogic Dev General] Deleting a directory does not delete thedocuments in the directory?

Danny Sokolsky dsokolsky at marklogic.com
Fri Feb 16 10:15:16 PST 2007


Hi, 
 
That is an error in the documentation.   Deleting a directory deletes
the directory and all of its children.
 
Thank you for pointing it out--we'll get it corrected.
 
Thanks,
-Danny

	-----Original Message-----
	From: general-bounces at developer.marklogic.com
[mailto:general-bounces at developer.marklogic.com] On Behalf Of
VSedov at wiley.ru
	Sent: Friday, February 16, 2007 6:06 AM
	To: general at developer.marklogic.com
	Subject: [MarkLogic Dev General] Deleting a directory does not
delete thedocuments in the directory?
	
	

	Really? 
	
	dev_guide.pdf 
	
	4.2 Collections Versus Directories 
	Collections are used to organize documents in a database. You
can also use directories to organize 
	documents in a database. The key differences in using
collections to organize documents versus 
	using directories are: 
	* Collections do not require member documents to conform to any
URI patterns. They are 
	not hierarchical; directories are. Any document can belong to
any collection, and any 
	document can also belong to multiple collections. 
	* You can delete all documents in a collection with the
xdmp:collection-delete() function. 
	Deleting a directory does not delete the documents in the
directory (unless you use a 
	WebDAV client to delete a directory). 
	* You cannot set properties on a collection; you can on a
directory. 
	Except for the fact that you can use both collections and
directories to organize documents, 
	collections are unrelated to directories. For details on
directories, see "Properties Documents and 
	Directories" on page 98. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20070216/ad775a52/attachment.html


More information about the General mailing list