How to remove iCloud forcefully

Sometimes, it is hard to log out iCloud completely. In that case, you can do following. I got this info from here

Open Terminal as a user with Administrator rights

defaults delete MobileMeAccounts