---
title: "Deletes an virtual machine."
method: DELETE
path: "/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default"
tags: ["VirtualMachineInstances"]
---

# Deletes an virtual machine.

`DELETE /{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default`

The operation to delete a virtual machine instance.

## Path parameters

- `resourceUri` string, required

## Query parameters

- `api-version` string, required
- `deleteFromHost` boolean
- `force` boolean

## Response `202`

Accepted

## Other responses

- `204` — No Content
- `default` — Error response describing why the operation failed.

## Changes

- **2026-07-13** (2020-10-01-preview) `9a5918d99140` — 1 info
  - endpoint added
- **2021-10-01** (2020-10-01-preview) `3bc66cfa77bc` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/azure/apis/connectedvmware-microsoft-connectedvmwarevsphere/changes/:resourceUri/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/delete.md)

---

[API](https://skmtc.dev/azure/apis/connectedvmware-microsoft-connectedvmwarevsphere.md) · [All operations](https://skmtc.dev/azure/apis/connectedvmware-microsoft-connectedvmwarevsphere/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/connectedvmware-microsoft-connectedvmwarevsphere/revisions/81d67c5b52dd/schema)
