> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deleting a Compute virtual machine

If [standalone disks](/compute/storage/types#vm-managed-and-standalone-disks) or filesystems are attached to your virtual machine (VM), Compute doesn't automatically delete them. To stop being charged for volumes you no longer need, [delete](/compute/storage/manage#how-to-delete-a-volume) these volumes separately.

If VM-managed disks are attached to your VM, they are deleted along with the VM automatically. Charges for these disks stop immediately.

To delete a VM:

<Tabs group="interfaces">
  <Tab title="Web console">
    1. In the sidebar, go to <Icon icon="https://mintcdn.com/nebius-ai-cloud/rOlLZ_MFvrheaI-h/_assets/sidebar/compute.svg?fit=max&auto=format&n=rOlLZ_MFvrheaI-h&q=85&s=8d3eda9b92f5a626a81d01268852f482" width="16" height="16" data-path="_assets/sidebar/compute.svg" /> **Compute** → **Virtual machines**. On the **Standalone VMs** tab, click the virtual machine you want to delete.
    2. On the VM page, go to the **Settings** tab.
    3. Click **Delete virtual machine**.
    4. In the window that opens, confirm the deletion.
  </Tab>

  <Tab title="CLI">
    1. Get the ID of the virtual machine you want to delete:

       ```bash theme={null}
       nebius compute instance list
       ```

    2. Delete the virtual machine:

       ```bash theme={null}
       nebius compute instance delete <VM_ID>
       ```
  </Tab>

  <Tab title="Go SDK">
    1. Get the ID of the virtual machine you want to delete:

       ```go theme={null}
       instances, err := sdk.Services().Compute().V1().
           Instance().List(
               ctx,
               &compute.ListInstancesRequest{},
           )
       if err != nil {
           return err
       }
       fmt.Println(instances)
       ```

    2. Delete the virtual machine:

       ```go theme={null}
       deleteFinalOperation, err := sdk.Services().Compute().V1().
           Instance().Delete(
               ctx,
               &compute.DeleteInstanceRequest{
                   Id: "<VM_ID>",
               },
           )
       if err != nil {
           return err
       }
       if _, err = deleteFinalOperation.Wait(ctx); err != nil {
           return err
       }
       ```
  </Tab>

  <Tab title="Python SDK">
    1. Get the ID of the virtual machine you want to delete:

       ```python theme={null}
       instance_service = InstanceServiceClient(sdk)
       instances = await instance_service.list(ListInstancesRequest())
       print(instances)
       ```

    2. Delete the virtual machine:

       ```python theme={null}
       instance_service = InstanceServiceClient(sdk)
       delete_final_operation = await instance_service.delete(
           DeleteInstanceRequest(id="<VM_ID>"),
       )
       await delete_final_operation.wait()
       ```
  </Tab>

  <Tab title="JavaScript SDK">
    1. Get the ID of the virtual machine you want to delete:

       ```ts theme={null}
       const manageListInstanceService = new InstanceService(sdk);
       const listedInstances = await manageListInstanceService.list(
         ListInstancesRequest.create({}),
       );
       console.log(listedInstances);
       ```

    2. Delete the virtual machine:

       ```ts theme={null}
       const finalVmDeleteService = new InstanceService(sdk);
       const deleteFinalVmOperation =
         await finalVmDeleteService.delete(
           DeleteInstanceRequest.create({
             id: "<VM_ID>",
           }),
         ).result;
       await deleteFinalVmOperation.wait();
       ```
  </Tab>
</Tabs>
