Open search box and write "Account Settings and Info" hit enter here you see the option of "Manage My Accounts" Click it so the computer open official Microsoft Account page in explorer. here you will see devices connected to your account so just unlink your desired device and done. Just restart your device.
Now your computer will completely unlinked from your account no data traces and remains will be there...