title: How to remove Azure On-Premises Data Gateway connection gateway installations?
body: <p>the <a href="https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-gateway-install" rel="nofollow noreferrer">Azure On-Premises Data Gateway</a> got installed with the wrong Azure region settings on a Virtual Machine in Azure. After uninstalling the on-premises Data Gateway, the original connection gateway installation is not removed and a new one with the same name cannot be created anymore. I even tried deleting the Virtual Machine to see if they would disappear. This had no impact.</p>
  
  <p>When creating the on-premises data gateway in the Azure Portal I can still select the old installation names.</p>
  
  <p>Also the following request returns those installations:</p>
  
  <p><code>https://management.azure.com/subscriptions/{subscriptionId}/Microsoft.Web/locations/northeurope/connectionGatewayInstallations?api-version=2015-08-01-preview</code></p>
  
  <p><img src="https://i.stack.imgur.com/eyz8B.png" alt="Connection Gateway Installations"></p>
  
  <p>I tried removing them with a <code>DELETE</code> http request to the connectionGatewayInstallations endpoint, but that returned a 400 Bad Request:</p>
  
  <p><code>https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/northeurope/connectionGatewayInstallations/{connectionGatewayInstallationId}?api-version=2015-08-01-preview</code></p>
  
  <pre><code>{
      "error": {
          "code": "DisallowedResourceOperation",
          "message": "The operation 'delete' on resource type 'locations/connectionGatewayInstallations' is disallowed."
      }
  }
  </code></pre>
  
  <p>Anyone having any ideas on how to delete those connectionGatewayInstallations?</p>