---
title: "delete"
method: DELETE
path: "/v1/bucket/{bucketId}"
tags: ["Buckets"]
---

# delete

`DELETE /v1/bucket/{bucketId}`

## Request

- Base URL: `https://api.groundx.ai/api`
- URL: `https://api.groundx.ai/api/v1/bucket/{bucketId}`
- Auth: API key in header `X-API-Key`

Delete a bucket.

Interact with the "Request Body" below to explore the arguments of this function. Enter your GroundX API key to send a request directly from this web page. Select your language of choice to structure a code snippet based on your specified arguments.

## Path parameters

- `bucketId` integer, required

## Response `200`

Bucket successfully deleted

- MessageResponse
  - `message` string

## Other responses

- `400`: Invalid bucket ID
- `401`: Unauthorized to delete bucket with given ID

## Changes

- **2023-11-29** `3bb565058636`: 1 info
  - endpoint added
- **2023-10-05** `5ee59ea914aa`: 1 breaking
  - api removed without deprecation
- **2023-10-04** `7d474e21a108`: 2 info
  - api operation id `deleteBucket` removed and replaced with `Bucket_delete`
  - api tag `Bucket` added
- **2023-10-04** `ca35b3c23d70`: 1 breaking
  - for the `path` request parameter `bucketId`, the type changed from `string` to `integer`
- **2023-10-04** `7848b3447e70`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/groundxai/apis/groundx-apis/changes/v1/bucket/:bucketId/delete.md)

---

[API](https://skmtc.dev/groundxai/apis/groundx-apis.md) - [All operations](https://skmtc.dev/groundxai/apis/groundx-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/groundxai/apis/groundx-apis/revisions/1c1a5c17f52f?raw)
