---
title: "Revoke bucket credentials"
method: DELETE
path: "/api/v1/buckets/{bucketId}/credentials"
tags: ["Buckets"]
---

# Revoke bucket credentials

`DELETE /api/v1/buckets/{bucketId}/credentials`

## Request

- Base URL: `https://app.khotan.com`
- URL: `https://app.khotan.com/api/v1/buckets/{bucketId}/credentials`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Revokes the bucket's live folder-scoped API key and clears the stored secret without minting a replacement. Subsequent Files API calls with the revoked key fail authentication. Issue a new key with POST /api/v1/buckets/{bucketId}/credentials when one is needed again.

## Path parameters

- `bucketId` string, required

## Response `200`

The bucket credential was revoked.

- object
  - `revoked` true, required

## Other responses

- `401`: Authentication is missing or invalid.
- `403`: The caller is not permitted to perform this action.
- `404`: The resource was not found.
- `429`: Too many requests; retry after the indicated delay.

---

[API](https://skmtc.dev/khotan/apis/khotan-api.md) - [All operations](https://skmtc.dev/khotan/apis/khotan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/khotan/apis/khotan-api/revisions/90b512a53e42?raw)
