---
title: "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}"
method: DELETE
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}"
tags: ["VirtualClusters"]
---

# DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}

`DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}`

Deletes a virtual cluster.

## Path parameters

- `resourceGroupName` string, required
- `virtualClusterName` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

Successfully deleted the virtual cluster.

## Other responses

- `202` — Deleting the virtual cluster is in progress.
- `204` — The specified virtual cluster 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 ResourceDoesNotExist - Resource with the name '{0}' does not exist. To continue, specify a valid resource name. * 404 VirtualClusterNotInSubscriptionResourceGroup - specified virtual cluster does not exist in the specified resource group and subscription. * 404 SubscriptionDoesNotHaveVirtualCluster - The requested virtual cluster was not found * 404 OperationIdNotFound - The operation with Id does not exist. * 404 ResourceNotFound - The requested resource was not found. * 409 ConflictingVirtualClusterOperation - An operation is currently in progress for the virtual cluster. * 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 ConflictingSubscriptionOperation - An operation is currently in progress for the subscription. * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation.

---

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