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

# Delete user

`DELETE /users/{username}`

This can only be done by the logged in user.

## Path parameters

- `username` string, required

## Response `204`

successful operation

## Other responses

- `400` — Invalid username supplied
- `401` — Access token is missing or invalid
- `404` — User not found

---

[API](https://skmtc.dev/packtpublishing/apis/swagger-store.md) · [All operations](https://skmtc.dev/packtpublishing/apis/swagger-store/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/packtpublishing/swagger-store/revisions/f94aceed91bc/schema)
