Remove inactive accounts after login

How do I remove an inactive account from the accounts list after login?

Can anyone help with this pls? I am not able to connect my outlook with IS. It keeps giving me error. Pls help.