> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# DeleteUser

Ledger API

›

[gRPC API](https://docs.canton.network/reference/grpc-ledger-api-reference/overview.md)

›

[v2.admin](https://docs.canton.network/reference/grpc-ledger-api-reference/com-daml-ledger-api-v2-admin.md)

›

DeleteUser

com.daml.ledger.api.v2.admin

# DeleteUser

gRPC

RPC

`/com.daml.ledger.api.v2.admin.UserManagementService/DeleteUser`

## Protocol Details

Protocol
gRPC

Service
UserManagementService

RPC
DeleteUser

Client stream
No

Server stream
No

## Inputs

### DeleteUserRequest

Message
com.daml.ledger.api.v2.admin.DeleteUserRequest

Client stream
No

`user_id`
string

`identity_provider_id`
string

## Outputs

### DeleteUserResponse

Message
com.daml.ledger.api.v2.admin.DeleteUserResponse

Server stream
No

## Related Schemas

> [accordion] com.daml.ledger.api.v2.admin.DeleteUserRequest
>
> `user_id`
> string
>
> `identity_provider_id`
> string

> [accordion] com.daml.ledger.api.v2.admin.DeleteUserResponse

grpcurl

```bash grpcurl theme={"theme":{"light":"github-light","dark":"github-dark"}}
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.daml.ledger.api.v2.admin.UserManagementService/DeleteUser <<'EOF'
{
  "userId": "string",
  "identityProviderId": "string"
}
EOF
```

OK

application/json

```json OK theme={"theme":{"light":"github-light","dark":"github-dark"}}
{}
```
