[GH-ISSUE #926] [api] Cannot delete user #1419

Closed
opened 2026-08-05 00:42:24 -04:00 by saavagebueno · 5 comments
Owner

Originally created by @kdre on GitHub (Jun 2, 2023).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/926

Describe the problem
I accidently invited a user and mistyped his email address. Now I would like to delete this user as this wrong user is listed under "users". There is no way to use the UI to delete a user, so I tried it using the public api as described here: https://docs.netbird.io/api/resources/users#delete-a-user

When I try to delete the user I get as response:
{"message":"regular users can not be deleted","code":403}

I used the api before to delete groups, so I know that my access token is right ...

Expected behavior
The user should be deleted.

How can I delete the user?

Originally created by @kdre on GitHub (Jun 2, 2023). Original GitHub issue: https://github.com/netbirdio/netbird/issues/926 **Describe the problem** I accidently invited a user and mistyped his email address. Now I would like to delete this user as this wrong user is listed under "users". There is no way to use the UI to delete a user, so I tried it using the public api as described here: https://docs.netbird.io/api/resources/users#delete-a-user When I try to delete the user I get as response: {"message":"regular users can not be deleted","code":403} I used the api before to delete groups, so I know that my access token is right ... **Expected behavior** The user should be deleted. How can I delete the user?
saavagebueno added the feature-request label 2026-08-05 00:42:24 -04:00
Author
Owner

@mlsmaycon commented on GitHub (Jun 16, 2023):

Hello @kdre this is our fault; the delete API is only blocking; we will update the documentation.

With that said, where are you able to block the user?

<!-- gh-comment-id:1594892977 --> @mlsmaycon commented on GitHub (Jun 16, 2023): Hello @kdre this is our fault; the delete API is only blocking; we will update the documentation. With that said, where are you able to block the user?
Author
Owner

@ApolloF commented on GitHub (Jun 18, 2023):

So a user cannot be deleted?

<!-- gh-comment-id:1596137482 --> @ApolloF commented on GitHub (Jun 18, 2023): So a user cannot be deleted?
Author
Owner

@kdre commented on GitHub (Jun 18, 2023):

@mlsmaycon So you say, that there is no way to delete a user?

<!-- gh-comment-id:1596277039 --> @kdre commented on GitHub (Jun 18, 2023): @mlsmaycon So you say, that there is no way to delete a user?
Author
Owner

@mlsmaycon commented on GitHub (Jun 18, 2023):

Hello @ApolloF @kdre, currently no. We will add user removal from the management system but not from the identity provider.

<!-- gh-comment-id:1596281488 --> @mlsmaycon commented on GitHub (Jun 18, 2023): Hello @ApolloF @kdre, currently no. We will add user removal from the management system but not from the identity provider.
Author
Owner

@TechHutTV commented on GitHub (May 9, 2026):

The regular users can not be deleted block was removed in PR #1113 ("Handle user delete"), released in v0.23.2. The Users DELETE endpoint now removes regular users from the management system (the IdP user is left in place by design). Closing as fixed — if I missed anything feel free to reply here or open a new discussion.

<!-- gh-comment-id:4413149101 --> @TechHutTV commented on GitHub (May 9, 2026): The `regular users can not be deleted` block was removed in PR #1113 ("Handle user delete"), released in v0.23.2. The Users DELETE endpoint now removes regular users from the management system (the IdP user is left in place by design). Closing as fixed — if I missed anything feel free to reply here or open a new discussion.
Sign in to join this conversation.
No Label feature-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#1419