# bucket-delete

The box bucket-delete command deletes a bucket from a specific object storage instance. This command permanently removes the selected bucket and its data from the object storage.

## Usage

```
cldkctl box bucket-delete [flags]
```

## Aliases

```
bucket-delete, bucket-rm
```

## Steps

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

1. View the list of existing buckets to find the Bucket Name and Object Storage ID. Refer to the Box Bucket List section.
2. Run the following command in your terminal:

```
cldkctl box bucket-delete --name <bucket-name> <object-storage-id>
```

3. Replace `<bucket-name>` with the name of the bucket you want to delete and `<object-storage-id>` with the ID of the corresponding object storage.
4. Once completed successfully, a message **“✓ Successfully deleted bucket object storage!”** will appear in your terminal.

<figure><img src="/files/JAV15ZstSHDoNlSJ1KtQ" alt=""><figcaption></figcaption></figure>

## 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 box bucket-delete command.       |
| -n, --name string | Specify the name of the bucket to delete. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-box/bucket-delete.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
