In most civil cases, outside of perhaps family law cases, if the parties reach agreement in the matter they'll simply jointly move to dismiss the case, which the court will be more than happy to grant, and the agreement will never be submitted to the court nor become a part of the court record. The parties will do that in part precisely because they want the agreement to remain private.

