In any Office app, go to File > Account (or Office Account in Outlook) > Sign out. Close all Office apps