My wife minored in Family History Research in college. If you are using FamilySearch, she suggests you go the old fashioned route and use white-out after printing the trees. You can write "private" over the whiteout if desired. Modifying the database to exclude information is ill-advised since FamilySearch is a single worldwide database. She is not aware of a way to hide one of the parents just because they have divorced (though you can record a divorce date in the marriage information) - the parental relationship is there for the children.
If you don't want to use white-out on the printouts, you could export the needed generations from the FamilySearch database to another product and then modify the data there. The benefit is some of these programs have very good looking print options. Not an endorsement, but we have used RootsMagic brand software and there is a free download option that provides limited functionality. You can purchase the full version for about $40 so it isn't terribly expensive and could easily resolve your dilemma (because after you bring in the data from family search, you can simply delete the divorced spouse or modify the offline database to show whatever you want to show).
There are several other good products available. A quick google search led to this article that you might find useful:
https://www.toptenreviews.com/best-family-tree-maker