---
title: "Delete user by userId"
method: DELETE
path: "/user/{userId}"
tags: ["User"]
---

# Delete user by userId

`DELETE /user/{userId}`

## Path parameters

- `userId` string, required

## Headers

- `Authorization` string, required

## Response `200`

Success

- ApiJSONEMSGResult
  - `code` integer
  - `msg` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized operation
- `500` — Internal server error

## Changes

- **2022-03-19** `a309faf4c158` — 1 info
  - endpoint added
- **2021-02-03** `0fc79acbe827` — 1 breaking
  - api removed without deprecation

[Change history](https://skmtc.dev/federatedai/apis/kubefate-service-api/changes/user/:userId/delete.md)

---

[API](https://skmtc.dev/federatedai/apis/kubefate-service-api.md) · [All operations](https://skmtc.dev/federatedai/apis/kubefate-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/federatedai/kubefate-service-api/revisions/01a50f79e50f/schema)
