-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
delete user with its repositories & organization memberships #15588
Comments
I would propose a "purge user" function for admins ... |
@6543 that seems fine to me. Anything better than deleting repositories one by one. |
Or a flag |
I too would like such an option on the admin UI to delete a user along with all its memberships. |
Is there any back-end administrative script that can do this (e.g. a script that runs a few lines of SQL)? |
Does it already help anyone to provide an API function here? Either an option to remove a user including everything, or a separate that removes a user with all the data that can be run after some kind of confirmation. |
API would be great. As far as options: even better would be the option for the account deletion to merely disable the account without deleting it, so that all of the data related to the user account remains intact. Perhaps such an option exists that I'm not aware of, in which case please disregard this comment. If not, there are a wide range of business, operational and/or legal reasons why disabling may be preferable-- or necessary-- in lieu of deleting. Also important to consider is that it may be desirable for peripheral content created under that account-- such as, for example, comments to some issue related to someone else's repo-- to remain (imagine trying to read an issue history with a key participant's comments removed). There are surely also regulatory considerations related to users' control of content as well, and in a world where regulatory requirements can quickly change, flexibility is even more valuable. Worth making the connection as well that related to these considerations is the ability to export data related to a specific account i.e. #1446 and #4351 |
By the way, because the link doesn't exist, there is #18064. |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
Add the ability to purge users when deleting them. Close #15588 Signed-off-by: Andrew Thornton <[email protected]>
Add the ability to purge users when deleting them. Close go-gitea#15588 Signed-off-by: Andrew Thornton <[email protected]>
Hi, can I ask how to use this feature? I'm using 1.17.3 A common pattern of spam on my gitea is that a user signs up and creates an empty repository (or several) with ads and links. The user can't be deleted through the admin UI, because it has repositories. The spam repositories have to be deleted one at a time. This spam vector greatly dropped in popularity when I disabled sign-ups other than through github, but it's still happening. |
The feature is in 1.18 so would be in dev, 1.18-dev or 1.18-rc0 |
[x]
):I recently had a spam attack on my open Gitea instance.
Spammers seems are targeted for the Gitea instances, as some accounts created several repositories or created and joined organizations. The problem is, I can't delete these accounts with one command or click.
Nor CLI, nor Web admin panel gives me anything to purge everything made by these bots.
The text was updated successfully, but these errors were encountered: