This command is useful for testing the behavior of double-spends when iteracting with Core on regtest. Since this RPC likely should not be used on livenet, it is hidden from help, similarly to invalidateblock.
The intended usecase for this RPC is to allow for conflicting transactions to be added to the mempool that do not satisfy RBF rules. This would allow a fork to be generated with a double-spend in integration tests with other software in order to simulate a reorg and double-spend event.
The RPC itself simply exposes the removeRecursive public mempool method to the RPC interface and introduces a new MANUAL mempool removal reason. The pull request includes a functional test for its intended behavior.