After deleting the forests you would delete each database. Gene Thomas MarkLogic Deployment & Operations Engineer
VDC-HIM Project | CGI Federal | T: 619-947-6507 | C 619-496-7766 www.cgi.com -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Thomas, Elroy E (CGI Federal) Sent: Friday, July 10, 2015 12:17 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] batch delete You could write an xquery script to get the list of databases/forests you wanted to delete And then execute a series of admin:forest-delete commands after you have issued admin:database-detach-forest commands for each of them. You get the list of databases you want to delete using admin:database-get-id((comma separated list of names)) Then get the list of forests for each, detach each and then delete each. You can find all the info you need in http://docs.marklogic.com/guide/admin-api https://docs.marklogic.com/admin Gene Thomas MarkLogic Deployment & Operations Engineer VDC-HIM Project | CGI Federal | T: 619-947-6507 | C 619-496-7766 www.cgi.com -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of cyanline llc Sent: Friday, July 10, 2015 12:04 PM To: MarkLogic Developer Discussion Subject: [MarkLogic Dev General] batch delete Hello, Is there a method to batch delete forests? Or DBs, or Servers? During developing an app I have amassed a lot of these items and I think things would run smoother if ML was cleaned up. Thank you ahead of time. _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
