Virtual Machines - Delete
Sanal makineyi silme işlemi.
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}?api-version=2026-04-01
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}?api-version=2026-04-01&forceDeletion={forceDeletion}
URI Parametreleri
| Name | İçinde | Gerekli | Tür | Description |
|---|---|---|---|---|
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
Kaynak grubunun adı. İsim büyük/küçük harfe duyarsızdır. |
|
subscription
|
path | True |
string minLength: 1 |
Hedef aboneliğin kimliği. |
|
vm
|
path | True |
string |
Sanal makinenin adı. |
|
api-version
|
query | True |
string minLength: 1 |
Bu işlem için kullanılacak API sürümü. |
|
force
|
query |
boolean |
Sanal makineleri silmeye zorlamak için isteğe bağlı parametre. |
Yanıtlar
| Name | Tür | Description |
|---|---|---|
| 200 OK |
Kaynak başarıyla silindi. |
|
| 202 Accepted |
Kaynak silme kabul edildi. Üst Bilgiler
|
|
| 204 No Content |
Kaynak yok. |
|
| Other Status Codes |
Beklenmeyen bir hata yanıtı. |
Güvenlik
azure_auth
Azure Active Directory OAuth2 Akışı.
Tür:
oauth2
Akış:
implicit
Yetkilendirme URL’si:
https://login.microsoftonline.com/common/oauth2/authorize
Kapsamlar
| Name | Description |
|---|---|
| user_impersonation | kullanıcı hesabınızı taklit etme |
Örnekler
Force delete a VM
Örnek isteği
DELETE https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM?api-version=2026-04-01&forceDeletion=true
Örnek yanıt
Location: https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/westus/operations/{operationId}&monitor=true&api-version=2026-04-01
Tanımlar
| Name | Description |
|---|---|
|
Api |
API hatası. |
|
Api |
Api hata tabanı. |
|
Cloud |
İşlem hizmetinden bir hata yanıtı. |
|
Inner |
İç hata ayrıntıları. |
ApiError
API hatası.
| Name | Tür | Description |
|---|---|---|
| code |
string |
Hata kodu. |
| details |
Api hata ayrıntıları |
|
| innererror |
Api iç hatası |
|
| message |
string |
Hata iletisi. |
| target |
string |
Belirli bir hatanın hedefi. |
ApiErrorBase
Api hata tabanı.
| Name | Tür | Description |
|---|---|---|
| code |
string |
Hata kodu. |
| message |
string |
Hata iletisi. |
| target |
string |
Belirli bir hatanın hedefi. |
CloudError
İşlem hizmetinden bir hata yanıtı.
| Name | Tür | Description |
|---|---|---|
| error |
API hatası. |
InnerError
İç hata ayrıntıları.
| Name | Tür | Description |
|---|---|---|
| errordetail |
string |
İç hata iletisi veya özel durum dökümü. |
| exceptiontype |
string |
Özel durum türü. |