Loading TOC...


   config as element(configuration),
   database-id as (Number|String),
   forest-id as (Number|String)
) as Boolean


This function returns true if the specified forest is retired and false the specified forest is not retired.

config A configuration specification, typically as returned from one of the Admin module functions.
database-id The ID of the database.
forest-id The ID of the forest.


  const admin = require('/MarkLogic/admin.xqy');
  const config = admin.getConfiguration()
  const dbid = admin.databaseGetId(config, "myDatabase")
  const forestid = admin.forestGetId(config, "myForest")
  admin.databaseIsForestRetired(config, dbid, forestid)

   //returns true if the specificed forest is retired and
   //false if it is not retired. 

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.