Message Text
Foreign replica configuration can not be deleted for database variable1 as there are forest overrides. Delete foreign replica forest overrides first.
Cause
When you configure database replication, you can either let the forests map by their names or hand pick the forests on the master and replica and map them. The latter method is nothing but configuring forest overrides. This error is seen when you configure database replication with forest overrides and later try to remove the database replication configuration without removing the forest mapping.
Response
Remove the forest overrides, i.e. remove mappings between master and replica forests that were hand-picked while configuring, and then try to remove database replication configuration again.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.