Skip to content
Username & Password

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.

ParameterInTypeRequiredDescription
organizationIdPathstringYesOrganization ID.
contextIdPathstringYesSign-In Context ID.
x-auth-tokenHeaderstringYesContext API key.
usernameBodystringYesUsername to revoke.

Request example

cURL
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 example

204
HTTP/1.1 204 No Content

Next