---
title: "Delete DMS Service Instance"
method: DELETE
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}"
tags: ["Service resource", "Standard operation", "DELETE"]
---

# Delete DMS Service Instance

`DELETE /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}`

The services resource is the top-level resource that represents the Data Migration Service. The DELETE method deletes a service. Any running tasks will be canceled.

## Query parameters

- `deleteRunningTasks` boolean

## Response `200`

Service resource deleted

## Other responses

- `202` — Deletion accepted
- `204` — Service not found
- `default` — Error

---

[API](https://skmtc.net/azure/apis/azure-data-migration-service-resource-provider.md) · [All operations](https://skmtc.net/azure/apis/azure-data-migration-service-resource-provider/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/azure-data-migration-service-resource-provider/versions/0881821a9cfa/schema)
