---
title: "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName}"
method: DELETE
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName}"
tags: ["SqlServerRegistrations"]
---

# DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName}

`DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName}`

Deletes a SQL Server registration.

## Path parameters

- `resourceGroupName` string, required
- `sqlServerRegistrationName` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

Successfully deleted the SQL Server registration.

## Other responses

- `204` — The specified SQL Server registration does not exist.
- `default` — *** Error Responses: *** * 400 RPGenericUser - User Failure when calling other Resource Provider. * 400 InvalidArgument - Invalid argument '{0}'. * 400 ArgumentNotInRange - Argument '{0}' not in range. * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified. * 400 InvalidParameterValue - An invalid value was given to parameter. * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource. * 400 TinaGroupUpdateFailVmAttached - SQL Server registration cannot be updated as it has attached a SQL Server. * 400 InvalidSqlImageOffer - Provided SQL image offer is invalid. * 400 InvalidSqlSku - Provided SQL sku is invalid. * 400 OuPathAndDomainMismatch - OU path is not within the domain provided. * 400 InvalidAccountNameFormat - Account name format is invalid. * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup cloud witness is not allowed. * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, file share witness is not allowed. * 400 InvalidStorageAccountUrl - Invalid storage account url. * 400 TinaGroupNameTooLong - SQL Server registration name cannot exceed 15 characters. * 400 InvalidTinaGroupName - Invalid SQL Server registration name. * 400 TinaGroupNotEmpty - SQL Server registration is not empty. * 400 TinaGroupUpdateNotAllowed - Update to SQL Server registration is not allowed. * 403 AccessDenied - Access denied. * 404 SubscriptionDoesNotExist - Subscription id does not exist. * 404 ResourceDoesNotExist - Resource does not exist. * 404 OperationIdNotFound - Operation id could not be found. * 404 OperationTypeNotFound - Operation Type not found. * 404 ResourceNotFound - The requested resource was not found. * 404 SubscriptionDoesNotHaveTINAGroupInResourceGroup - Subscription does not have SQL Server registration in resource group. * 409 ResourceAlreadyExists - Resource already exists. * 409 SqlExtensionNotInstalled - SQL extension not installed. * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request. * 409 OperationInProgress - Operation in progress on resource already. * 409 OperationCanceled - Operation Cancelled. * 500 RPGenericSystem - System Failure when calling other Resource Provider. * 500 UnExpectedErrorOccurred - Unexpected error occurred. * 500 OperationTimeout - Operation timed out.

---

[API](https://skmtc.net/azure/apis/azuredatamanagementclient.md) · [All operations](https://skmtc.net/azure/apis/azuredatamanagementclient/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/azuredatamanagementclient/versions/227442e3fb5e/schema)
