---
title: "Delete access token"
method: DELETE
path: "/tokens/{key}"
tags: ["tokens"]
---

# Delete access token

`DELETE /tokens/{key}`

Delete the specified token by its id.

## Path parameters

- `key` string, required

## Response `200`

Success, returns the metadata for the deleted token.

- TokensResponse — Metadata about the JSON web token.
  - `id` string
  - `isRevoked` string — Zero if the token is still active, non-zero if the token has been revoked.
  - `name` string — The name of the token.
  - `apiLinks` HATEOAS[] — Hypertext As The Engine Of Application State.
    - `href` string, required — URL of the related HATEOAS link you can use for subsequent calls.
    - `rel` string, required — Link relation that describes how this link relates to the previous call.
    - `method` string, required — The HTTP method required for the related call.

## Other responses

- `400` — Invalid arguments. Please review the response for error details.
- `401` — Caller did not supply credentials or did not provide the correct credentials. If you are using an API key, it may be invalid or your Authorization header may be malformed.
- `403` — Caller is not authorized to delete token. While your authentication is valid, the authenticated user or token does not have permission to perform this action.
- `404` — The resource you requested does not exist.
- `default` — An unexpected error occurred. Please review the response for error details.

---

[API](https://skmtc.net/salesforce/apis/refocus-api.md) · [All operations](https://skmtc.net/salesforce/apis/refocus-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/salesforce/refocus-api/versions/42c2153b047e/schema)
