I have multiple google accounts. How can I hide some of them from the Gmail and Calendar apps? I have several google accounts I use for different purposes (i.e. my main everything account, one to log in to less secure websites / games, one shared account for work, my wife's Play store account). 

I only use my main account for the gmail app and two accounts for the calendar app. I have customized the synchronization options under settings -> General --> accounts but even though I disable synchronization of Gmail, the accounts still show up in the calendar and gmail apps. How can I make these go away?

I use a rooted Note 3 on t-mobile.

Thanks!
On Android 6 and lower you can install Xposed Framework and then XPrivacy module for Xposed. In Xprivacy, deny access to accounts for the gmail app. Then add the account you want visible to the white list.

You can have a separate white list for every app, so you can have different accounts show for different apps.

Some apps get their account list from Google Play Services, and I've had weird things happen when trying to block accounts from that. But gmail and calendar work fine. Hangouts has a sign out feature, so you don't really need to block, but blocking works there, too.