---
title: "Remove a badge from a user"
method: DELETE
path: "/admin/users/{username}/badges"
tags: ["admin"]
---

# Remove a badge from a user

`DELETE /admin/users/{username}/badges`

## Path parameters

- `username` string, required

## Request body

- UserBadgeOption — UserBadgeOption options for link between users and badges
  - `badge_slugs` string[]

## Response `204`

APIEmpty is an empty response

## Other responses

- `403` — APIForbiddenError is a forbidden error response
- `422` — APIValidationError is error format response related to input validation

---

[API](https://skmtc.net/gitea/apis/gitea-api.md) · [All operations](https://skmtc.net/gitea/apis/gitea-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitea/gitea-api/versions/350de506cefa/schema)
