Unfortunately there is no XQuery functionality to remove a file system directory or a file.
Currently best practice is to zero out the file by writing a zero length file and using an external process to delete empty files and folders older than a couple hours or a day. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Florent Georges Sent: Friday, September 14, 2012 7:44 AM To: Florent Georges; Michael Blakeley; MarkLogic Developer Discussion; MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Inserting in a file system module database Florent Georges wrote: > Michael Blakeley wrote: Hi, >> There is no documented API function for directory creation. >> But http://marklogic.markmail.org/thread/t657yhz5oryvzrj6 >> includes mention of an undocumented, unsupported function. > Excellent, thanks for the tip! I don't like to use undocumented >features, but it is good enough for me for this project. Of course, now, I've reached the point where I'd like to be able to remove what I've actually created. Is there any way to remove a directory on the file system from XQuery in MarkLogic? Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
