---
title: "Purge object store bucket"
method: DELETE
path: "/storage/obj/{bucket}/purge"
tags: ["Object Store"]
---

# Purge object store bucket

`DELETE /storage/obj/{bucket}/purge`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/storage/obj/{bucket}/purge`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5/docs/storage/obj/:bucket/purge/delete.ts> (a function with typed inputs; its response is checked against the schema)

Purges all data from an object store bucket while keeping the bucket configuration

## Path parameters

- `bucket` string, required

## Response `200`

Bad Request

- SuccessMessage
  - `message` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2025-07-04** `d566a61279be`: 5 info
  - api operation id `purgeObjectBucket` removed and replaced with `purgeObjectStoreBucket`
  - api tag `Object Store` added
  - api tag `Object Store Buckets` removed
  - added the non-success response with the status `400`
  - …1 more
- **2025-06-13** `e4ad9e1ccd66`: 1 warning
  - added the new `Success` enum value to the `message` response property for the response status `200`
- **2025-06-06** `cc654358c882`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5/changes/storage/obj/:bucket/purge/delete.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5/revisions/104591eadd10?raw)
