---
title: "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}"
method: DELETE
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}"
tags: ["ManagedInstances"]
---

# DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}

`DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}`

Deletes a managed instance.

## Path parameters

- `resourceGroupName` string, required
- `managedInstanceName` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

Successfully deleted the managed instance.

## Other responses

- `202` — Accepted
- `204` — The specified managed instance does not exist.
- `default` — *** Error Responses: *** * 400 SubscriptionNotFound - The requested subscription was not found. * 400 ManagementServiceFeatureDisabled - User attempted to use a feature which is disabled. * 404 ServerNotInSubscription - Specified server does not exist on the specified subscription. * 404 ManagedInstanceNotInSubscriptionResourceGroup - Specified managed instance does not exist in the specified resource group and subscription. * 404 OperationIdNotFound - The operation with Id does not exist. * 404 ResourceNotFound - The requested resource was not found. * 409 ConflictingManagedInstanceOperation - An operation is currently in progress for the managed instance. * 409 OperationCancelled - The operation has been cancelled by user. * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource. * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources. * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources. * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources. * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources. * 429 ConflictingSubscriptionOperation - An operation is currently in progress for the subscription. * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation. * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources. * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources. * 504 RequestTimeout - Service request exceeded the allowed timeout. * 504 RequestTimeout - Service request exceeded the allowed timeout.

---

[API](https://skmtc.dev/azure/apis/sqlmanagementclient-48.md) · [All operations](https://skmtc.dev/azure/apis/sqlmanagementclient-48/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/sqlmanagementclient-48/revisions/0511893cb6d2/schema)
