---
title: "Remove XP from a specific user"
method: DELETE
path: "/public/communities/{subdomain}/users/{userId}/xp"
tags: ["communityMember"]
---

# Remove XP from a specific user

`DELETE /public/communities/{subdomain}/users/{userId}/xp`

## Request

- Base URL: `https://api-v2.zealy.io`
- URL: `https://api-v2.zealy.io/public/communities/{subdomain}/users/{userId}/xp`
- Auth: none declared. Required headers: `x-api-key`
- TypeScript: <https://skmtc.dev/zealy/apis/zealy-api/docs/public/communities/:subdomain/users/:userId/xp/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `subdomain` string, required
- `userId` string, uuid, required

## Headers

- `x-api-key` string, required

## Request body

- object
  - `xp` number, required
  - `label` string, required
  - `description` string

## Response `200`

200

- object
  - `xp` number, required
  - `label` string, required
  - `description` string, nullable, required
  - `communityId` string, required
  - `receiverId` string, required
  - `createdAt` string, nullable, required
  - `updatedAt` string, nullable, required
  - `id` string, required
  - `deleted` boolean, required

## Other responses

- `400`: 400
- `401`: 401
- `403`: 403
- `404`: 404
- `409`: 409
- `429`: 429
- `500`: 500

---

[API](https://skmtc.dev/zealy/apis/zealy-api.md) - [All operations](https://skmtc.dev/zealy/apis/zealy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zealy/apis/zealy-api/revisions/1c24cb9f818b?raw)
