---
title: "Revoke this key, or a key it made: a worker's key when the worker is done."
method: DELETE
path: "/v1/keys/{id}"
tags: ["keys"]
---

# Revoke this key, or a key it made: a worker's key when the worker is done.

`DELETE /v1/keys/{id}`

## Request

- Base URL: `https://api.withruntime.com`
- URL: `https://api.withruntime.com/v1/keys/{id}`
- Auth: HTTP bearer

Needs a full-access key made by an owner or admin (a wallet account's key is one). A read-only key, a developer's or one in a compartment cannot. An account-wide key may revoke any key in the account. The key stops working within ten seconds; what its agent made keeps running until stopped.

## Path parameters

- `id` string, required: The key's id.

## Headers

- `Idempotency-Key` string

## Response `200`

Success

- object
  - `keyId` string, required: The key's id.
  - `revokedAt` string, date-time, required

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/withruntime/apis/runtime-cloud-api.md) · [All operations](https://skmtc.dev/withruntime/apis/runtime-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/withruntime/apis/runtime-cloud-api/revisions/6f4012286988?raw)
