Open the Settings app. You can do this by pressing the Windows key + I on your keyboard or by searching for "Settings" in the Start menu.
Click on "Accounts" in the Settings app.
Click on "Access work or school."
Under the "Work or school accounts" section, select the account that you want to remove.
Click on "Disconnect" and then click "Yes" to confirm that you want to remove the account.
Note that if you are the only user of your device, you cannot remove the primary account.
Additionally, if you remove your work or school account, you will also lose access to any files or apps that are associated with that account. Therefore, it's important to back up any files or apps that you want to keep before removing the account.
After removing the work or school account, you will need to sign in to your device using a different account.
If you encounter any issues while trying to remove your work or school account, contact your IT administrator for assistance. They can help you troubleshoot the problem and ensure that your device remains secure.