---
title: "Delete an access key"
method: DELETE
path: "/users/{user_id}/access-keys/{id}"
tags: ["users"]
---

# Delete an access key

`DELETE /users/{user_id}/access-keys/{id}`

Delete an access key for the current user

## Path parameters

- `user_id` string, required
- `id` string, required

## Response `200`

The access key was deleted

- AccessKey — An authorization granted to a user
  - `durability` 'persistent' | 'session' — The durability of the key.
  - `href` string — A reference to this key
  - `last_used` string — An iso8601 formatted timestamp
  - `account` string — A reference to an account
  - `expiry` string — An iso8601 formatted timestamp
  - `type` 'bearer', required — The type of key. Currently, only 'bearer' tokens are supported

---

[API](https://skmtc.dev/webscale/apis/webscale-apis.md) · [All operations](https://skmtc.dev/webscale/apis/webscale-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/webscale/webscale-apis/revisions/c98d872b50cb/schema)
