Windows 11
How to Remove a Work or School Account from Windows 11 Safely
Removing a work or school connection can affect device registration, management and access to organizational resources. It is different from signing out of Outlook or OneDrive. Before disconnecting, identify how the PC is joined or enrolled, preserve permitted personal data and make sure you have a working way to sign