---
title: "Deletes a user Account from the specified Compute Node."
method: DELETE
path: "/pools/{poolId}/nodes/{nodeId}/users/{userName}"
tags: ["Nodes"]
---

# Deletes a user Account from the specified Compute Node.

`DELETE /pools/{poolId}/nodes/{nodeId}/users/{userName}`

You can delete a user Account to a Compute Node only when it is in the idle or
running state. Before you can remotely login to a Compute Node you must configure 
access ports for SSH and RDP. For more information, see https://learn.microsoft.com/azure/batch/pool-endpoint-configuration

## Path parameters

- `poolId` string, required
- `nodeId` string, required
- `userName` string, required

## Query parameters

- `api-version` string, required
- `timeOut` integer

## Headers

- `client-request-id` string
- `return-client-request-id` boolean
- `ocp-date` string, date-time-rfc7231

## Response `200`

The request has succeeded.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/batch-batch.md) · [All operations](https://skmtc.net/azure/apis/batch-batch/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/batch-batch/revisions/8427acd8fd77/schema)
