---
title: "Delete user info"
method: PATCH
path: "/v1/users/delete/:userId"
---

# Delete user info

`PATCH /v1/users/delete/:userId`

Deletes all data held by 3 sided cube for the existing user. Will return a 400 error if user is admin of a team and a 401 error if user is not authorised. Can delete your own info or any users if using microservice token

## Request body

- object
  - `areas` string[]

## Response `200`

OK

- object
  - `data` object
    - `deletedLayers` string[]
    - `deletedTemplates` string[]
    - `notDeletedTemplates` string[]
    - `deletedAnswers` string[]
    - `teamsRemovedFrom` string[]
    - `teamsNotRemovedFrom` string[]
    - `errors` object[]
      - `id` string
      - `error` string

## Other responses

- `401` — Error Response

---

[API](https://skmtc.net/wri/apis/fw-users.md) · [All operations](https://skmtc.net/wri/apis/fw-users/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wri/fw-users/versions/7005160681a8/schema)
