title: Azure Powershell: What is the opposite command to Login-AzureRmAccount (used to be Clear-AzureProfile)
body: <p>I have various scripts which I used to run in a wrapper to allow me to handle things like checking I had a valid connection and to ask the user if the connection/subscription currently selected is the one they want to run the script on before running it etc.</p>
  
  <p>The classic commands have Clear-AzureProfile which allows me to run it from a script and effectively break the connection so that it can't be used again without calling Add-AzureAccount.</p>
  
  <p>With the RM cmdlets I can only find Login-AzureRmAccount but once I've logged in...how do I call logout? </p>
  
  <p>There doesn't appear to be a Logout-AzureRMAccount or Remove-AzureRMAccount and Clear-AzureProfile has no effect.</p>
  
  <p>I run a dev workstation and connect to several different client subscriptions so want to be able to destroy the connection rather than just calling another login over the top of it (if that login failed I would still have the old connection set up which is dangerous for me)</p>
  
  <p>I've just logged this at: <a href="https://msdn.microsoft.com/en-us/library/mt619248.aspx" rel="noreferrer">https://msdn.microsoft.com/en-us/library/mt619248.aspx</a> as from the documentation it looks like the commands may be lacking</p>