---
title: "Purge lapsed OAuth tokens"
method: DELETE
path: "/tyk/oauth/tokens"
tags: ["OAuth"]
---

# Purge lapsed OAuth tokens

`DELETE /tyk/oauth/tokens`

Purge all lapsed OAuth token

## Query parameters

- `scope` 'lapsed', required

## Response `200`

lapsed tokens purged successfully

- ApiStatusMessage
  - `message` string
  - `status` string

## Other responses

- `400` — Sending a value other than lapsed in scope query
- `403` — Forbidden
- `422` — Missing lapsed query parameter
- `500` — Internal server error.

## Changes

- **2024-09-18** `111affa17abe` — 1 info
  - endpoint added
- **2023-12-07** `24cbfec0b298` — 1 breaking
  - api path removed without deprecation
- **2023-11-16** `685d4d94478d` — 1 info
  - endpoint added
- **2022-05-24** `111d8ca21864` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/tyktechnologies/apis/tyk-gateway-api/changes/tyk/oauth/tokens/delete.md)

---

[API](https://skmtc.dev/tyktechnologies/apis/tyk-gateway-api.md) · [All operations](https://skmtc.dev/tyktechnologies/apis/tyk-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tyktechnologies/tyk-gateway-api/revisions/900d0a33ae1d/schema)
