---
title: "Delete user"
method: DELETE
path: "/user/{username}"
tags: ["user"]
---

# Delete user

`DELETE /user/{username}`

This can only be done by the logged in user.

## Path parameters

- `username` string, required

## Other responses

- `400` — Invalid username supplied
- `404` — User not found

## Changes

- **2025-03-13** `887ffd0911f2` — 1 breaking
  - removed the success response with the status `200`
- **2025-03-12** `253de9e0f0ae` — 1 info
  - added the media type `application/json` for the response with the status `default`
- **2025-03-10** `7f5fd6699f68` — 1 info
  - added the success response with the status `200`

[Change history](https://skmtc.dev/swagger/apis/swagger-petstore-openapi-3-0/changes/user/:username/delete.md)

---

[API](https://skmtc.dev/swagger/apis/swagger-petstore-openapi-3-0.md) · [All operations](https://skmtc.dev/swagger/apis/swagger-petstore-openapi-3-0/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/swagger/swagger-petstore-openapi-3-0/revisions/887ffd0911f2/schema)
