> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-vm/delete.md).

# delete

The cldkctl vm delete command permanently removes a virtual machine (VM) by specifying its name. This command deletes the VM and releases all associated resources, such as storage, service configurations, and allocated CPU/memory. Use this command with caution, as the deletion is irreversible and cannot be undone. Ensure that you have the necessary permissions before performing this operation.

## Usage

```
cldkctl vm delete [name] [flags]
```

## Aliases

```
delete, del, rm
```

## Steps

Follow the steps below to run and view the result of this command:

1. Run the following command in your terminal and replace \<vm\_name> with your virtual machine name.

```
cldkctl vm delete <vm_name>
```

2. Ensure that you have the appropriate permissions before executing the command.
3. The system permanently deletes the specified VM and releases all associated resources, such as CPU, memory, and storage.
4. Once the deletion process is complete, a confirmation message “Virtual Machine Deleted” will appear in the terminal.
5. Verify that the VM no longer exists. Refer to the VM List section for detailed instructions on how to view the current list of virtual machines.

## Flags

{% hint style="info" %}
This command supports [global flags](/cloudeka-api-list/global-flags.md). Refer to the Global Flags section for details
{% endhint %}

| Flag                   | Description                                             |
| ---------------------- | ------------------------------------------------------- |
| -h, --help             | Help for the vm delete command.                         |
| -n, --namespace string | Specifies the cluster namespace to scope the operation. |
| -p, --project string   | Specifies the project ID.                               |
