Loading TOC...

DELETE /manage/v2/forests/{id|name}


Delete a forest.

URL Parameters
level The type of state change to initiate. Allowed values: full, config-only. A config-only deletion removes only the forest configuration; the data contained in the forest remains on disk. A full deletion removes both the forest configuration and the data.
replicas Determines how to process the replicas. Allowed values: detach to detach the replica but keep it. delete to detach and delete the replica.


Upon successful completion, MarkLogic Server returns status code 204 (No Content). A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.

Required Privileges

This operation requires one of the following:


$ curl --anyauth --user user:password -X DELETE -i \

==> The forest named "example" is deleted, along with all of the data 
    it contained. MarkLogic Server responds with headers similar to
    the following:

HTTP/1.1 204 No Content
Server: MarkLogic
Content-Length: 0
Connection: Keep-Alive
Keep-Alive: timeout=5

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