---
title: "Delete Expired Users"
method: DELETE
path: "/api/users/expired"
tags: ["User"]
---

# Delete Expired Users

`DELETE /api/users/expired`

Delete users who have expired within the specified date range.

- **expired_after** UTC datetime (optional)
- **expired_before** UTC datetime (optional)
- At least one of expired_after or expired_before must be provided

## Query parameters

- `expired_after` string, date-time, nullable
- `expired_before` string, date-time, nullable

## Response `200`

Successful Response

- string[]

## Other responses

- `401` — Unauthorized
- `422` — Validation Error

---

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