---
title: "Cleanup expired tokens"
method: PUT
path: "/v1/authentication/cleanup-expired-tokens"
tags: ["Authentication Controller"]
---

# Cleanup expired tokens

`PUT /v1/authentication/cleanup-expired-tokens`

## Request

- Base URL: `http://api.floik.com`
- URL: `http://api.floik.com/v1/authentication/cleanup-expired-tokens`
- Auth: none declared
- TypeScript: <https://skmtc.dev/floik/apis/floik-authentication-server/docs/v1/authentication/cleanup-expired-tokens/put.ts> (a function with typed inputs; its response is checked against the schema)

Scheduled job to clean up expired and stale tokens from database

## Response `200`

Cleanup completed successfully

- string

## Other responses

- `500`: Internal server error

---

[API](https://skmtc.dev/floik/apis/floik-authentication-server.md) - [All operations](https://skmtc.dev/floik/apis/floik-authentication-server/llms.txt) - [OpenAPI document](https://skmtc.dev/floik/apis/floik-authentication-server/revisions/2b2a5dad2f5e?raw)
