---
title: "Delete a user by ID"
method: DELETE
path: "/restapi/json/v1/user/{userId}"
tags: ["Users"]
---

# Delete a user by ID

`DELETE /restapi/json/v1/user/{userId}`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/restapi/json/v1/user/{userId}`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/restapi/json/v1/user/:userId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Permanently deletes a user from PAM360 based on the provided user ID. The operation requires the organization header to be passed in the request.

## Path parameters

- `userId` integer, required

## Headers

- `orgName` string

## Response `200`

User deleted

- DeleteUserResponse
  - `operation` object
    - `result` OperationResult
      - `message` string: Result message describing the operation outcome
      - `status` string: Operation status
    - `name` string

---

[API](https://skmtc.dev/manageengine/apis/pam360-rest-api.md) - [All operations](https://skmtc.dev/manageengine/apis/pam360-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manageengine/apis/pam360-rest-api/revisions/44a47abb4bdb?raw)
