Services - Delete

Delete DMS (classic) Service Instance
The services resource is the top-level resource that represents the Azure Database Migration Service (classic). The DELETE method deletes a service. Any running tasks will be canceled.

DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}?api-version=2022-03-30-preview
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}?deleteRunningTasks={deleteRunningTasks}&api-version=2022-03-30-preview

URI Parameters

Name In Required Type Description
groupName
path True

string

Name of the resource group

serviceName
path True

string

Name of the service

subscriptionId
path True

string

Subscription ID that identifies an Azure subscription.

api-version
query True

string

Version of the API

deleteRunningTasks
query

boolean

Delete the resource even if it contains running tasks

Responses

Name Type Description
200 OK

Service resource deleted

202 Accepted

Deletion accepted

204 No Content

Service not found

Other Status Codes

ApiError

Error

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

Services_CreateOrUpdate

Sample Request

DELETE https://management.azure.com/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService?api-version=2022-03-30-preview

Sample Response

Definitions

Name Description
ApiError

Error information.

createdByType
ODataError

Error information in OData format.

SystemData

ApiError

Error information.

Name Type Description
error

ODataError

Error information in OData format

systemData

SystemData

Metadata pertaining to creation and last modification of the resource.

createdByType

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

ODataError

Error information in OData format.

Name Type Description
code

string

The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'

details

ODataError[]

Inner errors that caused this error

message

string

The human-readable description of the error

SystemData

Name Type Description
createdAt

string

createdBy

string

createdByType

createdByType

lastModifiedAt

string

lastModifiedBy

string

lastModifiedByType

createdByType