---
title: "Delete a managed hosting environment."
method: DELETE
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/managedHostingEnvironments/{name}"
tags: ["ManagedHostingEnvironments"]
---

# Delete a managed hosting environment.

`DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/managedHostingEnvironments/{name}`

## Path parameters

- `resourceGroupName` string, required
- `name` string, required
- `subscriptionId` string, required

## Query parameters

- `forceDelete` boolean
- `api-version` string, required

## Response `202`

Asynchronous operation in progress

- Object

## Other responses

- `400` — Bad request
- `404` — Not found
- `409` — Conflict

---

[API](https://skmtc.dev/azure/apis/website-management-client.md) · [All operations](https://skmtc.dev/azure/apis/website-management-client/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/website-management-client/revisions/e6d8fbd68044/schema)
