xdmp.forestClear( $forestIDs as String ) as null
Clears forest data files, including all stands and journals.
If any of the forests being cleared are attached to the context database,
xdmp:forest-clear is run asynchronously, returning
immediately but doing the clear in a background thread.
If the forest being cleared is not attached to the context database, it is run synchronously and will block until it returns.
xdmp:forest-clear function is not transactional, and
the best practice is to not call it in a transaction that is also doing
|$forestIDs||The IDs of the forests to clear. If a forest has replica forests, the replicas are cleared as well.|