Skip to main content

Administrating MarkLogic Server

Retiring Forests

You can “retire” a forest from a database in order to move all of its documents to the other forests and rebalance them among those forests, as described in How Data is Moved When a Forest is Retired from the Database.

This code shows how to retire the forest, 2011, from the Documents database,

curl -i -X POST --digest --user user:password -H \
"Content-Type:application/x-www-form-urlencoded" \
--data "state=retire&database=Documents" \
http://MyHost:8002/manage/v2/forests/2011