# Delete Bucket Action

The *Delete Bucket* action allows you to **remove data from a bucket, including both folders and files.** You can choose to delete the entire bucket contents or target specific paths for deletion.

*   [Configure a Delete Bucket action](#configure-a-delete-bucket-action)
    *   [Choose items for deletion](#choose-items-for-deletion)

---

## Configure a Delete Bucket action

To create a new action, navigate to the **Action tab** of the Data Processing Engine (DPE), click on **New Action** and select the *Delete Bucket* action.

![list-buckets](picts/delete-bucket-action-1.png)

### Choose items for deletion

Upon selecting the *Delete Bucket* action, you will be presented with a list of your [Project buckets](/en/product/lakehouse-manager/buckets/index.md) on the left side of the screen. This panel allows you to browse and select the data you wish to delete.

![list-buckets](picts/delete-bucket-action-2.png)

1.  **Select the target bucket:** Locate the bucket from which you want to delete data.
2.  **Expand bucket contents (optional):** To see the folders and files inside a bucket, click on the **name of the bucket**. This will expand the view, showing its contents.
![list-buckets](picts/delete-bucket-action-3.png)
3.  **Choose items for deletion:**
    *   To delete an **entire bucket** and all its contents, click the **right arrow icon** (▶) next to the bucket's name.
    *   To delete a **specific folder** (and all its contents), navigate into the bucket and click the **right arrow icon** (▶) next to the desired folder's name.
    *   To delete an **individual file**, navigate into the bucket and folder where the file resides, then click the **right arrow icon** (▶) next to the file's name.
    ![list-buckets](picts/delete-bucket-action-4.png)
4.  **Review selected items:** As you click the right arrow, the selected buckets, folders, or files will be moved to the right column. This column indicates all items that are currently marked for deletion.
![list-buckets](picts/delete-bucket-action-5.png)

Carefully review the items in the right column to ensure you are deleting only what is intended. Once satisfied with your selection, proceed with the final steps as prompted by the DPE interface to confirm the deletion. **Be aware that deletion actions are permanent and cannot be undone.**

---

## Need help? 🆘

> At any step, you can create a ticket to raise an incident or if you need support at the [OVHcloud Help Centre](https://help.ovhcloud.com/csm/fr-home?id=csm_index). Additionally, you can ask for support by reaching out to us on the Data Platform Channel within the [Discord Server](https://discord.com/channels/850031577277792286/1163465539981672559). There is a step-by-step guide in the [support](#en/support/index.md) section.