# delete

Delete a flexi image from your project. This command allows you to remove a flexi image that is no longer needed.

## Usage

```
cldkctl flexi-image delete [image-id] [flags]
```

## Aliases

```
delete, del, rm
```

## Steps

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

1. Refer to the [**Image List**](https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-flexi-image/list) section to obtain the **image ID**.
2. Run the following command in your terminal:

```
cldkctl flexi-image delete [image-id] 
```

3. Replace **\[image-id]** with the ID of the custom image.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fu5JjaQnI1wg6XHQtIjG2%2Fimage.png?alt=media&#x26;token=cd5f8928-5bd0-4e9c-988c-a3161d4fff23" alt=""><figcaption></figcaption></figure>

## Flags

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

<table><thead><tr><th width="255.77777099609375">Flag</th><th>Description</th></tr></thead><tbody><tr><td>-h, --help</td><td>Help for the delete command.</td></tr></tbody></table>
