Compute - Delete

Deletes specified Machine Learning compute.

DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}?api-version=2023-10-01&underlyingResourceAction={underlyingResourceAction}

URI Parameters

Name In Required Type Description
computeName
path True

string

Name of the Azure Machine Learning compute.

resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string

The ID of the target subscription.

workspaceName
path True

string

Name of Azure Machine Learning workspace.

Regex pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$

api-version
query True

string

The API version to use for this operation.

underlyingResourceAction
query True

UnderlyingResourceAction

Delete the underlying compute if 'Delete', or detach the underlying compute from workspace if 'Detach'.

Responses

Name Type Description
200 OK

The request was successful; the request was well-formed and received properly.

202 Accepted

Compute deletion initiated.

Headers

  • Azure-AsyncOperation: string
  • Location: string
204 No Content

No content; The target compute does not exist.

Other Status Codes

ErrorResponse

Error response describing why the request failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Delete Compute

Sample Request

DELETE https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123?api-version=2023-10-01&underlyingResourceAction=Delete

Sample Response

Azure-AsyncOperation: https://management.azure.com/subscriptions/...pathToOperationStatus...
Location: https://management.azure.com/subscriptions/...pathToOperationResult...

Definitions

Name Description
ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

UnderlyingResourceAction

Delete the underlying compute if 'Delete', or detach the underlying compute from workspace if 'Detach'.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

UnderlyingResourceAction

Delete the underlying compute if 'Delete', or detach the underlying compute from workspace if 'Detach'.

Name Type Description
Delete

string

Detach

string