I think the new manage REST api would be helpful here, but you could also
have a look at Roxy (https://github.com/marklogic/roxy). It allows
Œwiping¹ arbitrary forests, databases, and servers. It is designed to wipe
things in the correct order, so you could put all in a single command.
Something like:
./ml env wipe --servers=server1,server2 --databases=db1,db2
--forests=forest1,forest2
Note: bit of a sharp tool. Be careful with what you wipe, there is no
undo. Then again, same accounts for admin api, and manage REST api..
Cheers,
Geert
On 7/10/15, 9:18 PM, "[email protected] on behalf of
cyanline llc" <[email protected] on behalf of
[email protected]> wrote:
>Awesome, thank you.
>
>On 07/10/2015 03:18 PM, Christopher Hamlin wrote:
>> Should also mention, the REST management APIs are really good too, as
>> another option:
>>
>> http://docs.marklogic.com/REST/management
>>
>> On Fri, Jul 10, 2015 at 3:15 PM, cyanline llc <[email protected]> wrote:
>>> Thanks for the reply. I'm looking to delete the forest entirely. I will
>>> take a look at the resources you provided. Thank you
>>> On 07/10/2015 03:15 PM, Christopher Hamlin wrote:
>>>> Sounds like most of what you want would be in the admin api, and can
>>>> be scripted in XQuery or JavaScript:
>>>>
>>>> http://docs.marklogic.com/guide/admin-api
>>>> https://docs.marklogic.com/admin
>>>>
>>>> xdmp:forest-clear can clear forest content, if that is what you want.
>>>>
>>>> On Fri, Jul 10, 2015 at 3:04 PM, cyanline llc <[email protected]>
>>>>wrote:
>>>>> 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
>> _______________________________________________
>> 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