Delete user
Revoke a username/password user. Active sessions are terminated.
DELETE /v1/org/{organizationId}/contexts/sign-in/{contextId}/modules/up/delete
Deletes a username/password user and terminates any active sessions the user currently has.
Request
Section titled “Request”| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | Path | string | Yes | Organization ID. |
contextId | Path | string | Yes | Sign-In Context ID. |
x-auth-token | Header | string | Yes | Context API key. |
username | Body | string | Yes | Username to revoke. |
Request example
curl -X DELETE "$API_BASE_URL/v1/org/$ORG_ID/contexts/sign-in/$CTX_ID/modules/up/delete" \ -H "x-auth-token: $NETGRAPH_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "username": "alice.smith" }'Response
Section titled “Response”Response example
HTTP/1.1 204 No Content