Delete a Service Fabric cluster resource

Deletes a Service Fabric cluster resource.

Delete a Service Fabric cluster resource with the specified name.

Request

Method Request URI
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}?api-version=2018-02-01

Parameters

Name Type Required Location
resourceGroupName string Yes Path
clusterName string Yes Path
subscriptionId string Yes Path
api-version string Yes Query

resourceGroupName

Type: string
Required: Yes

The name of the resource group.


clusterName

Type: string
Required: Yes

The name of the cluster resource.


subscriptionId

Type: string
Required: Yes

The customer subscription identifier.


api-version

Type: string
Required: Yes
Default: 2018-02-01

The version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2018-02-01" for this specification.

Responses

HTTP Status Code Description Response Schema
200 (OK) The operation completed successfully.
204 (NoContent) The resource was not found.
All other status codes The detailed error response.
ErrorModel

Examples

Delete a cluster

Request

DELETE https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster?api-version=2018-02-01

200 Response

Body

The response body is empty.