Accidentally "enabled" ghost user

Hi, I have a question regarding ghost user. I’ve accidentally enabled this user in admin, is there any option to step forward and make him again non-enabled internal user? Now I see it in user counts etc.

Or, is there any option to delete this user? It makes me mad :slight_smile:

D.

Another question is - what will happen if I force delete this user from database?

According to the document, not all records are deleted when a user is deleted. If you hard delete the ghost user, I think this will mean you’ll loose association of these records to an user. For example, if you look at the merge_request table, there’s a column for author_id. If you delete the ghost user directly from the database, you’ll loose the association of this row to a user so I think you’ll get a system error or at least not be able to access the associated merge request.

There’s a column named “ghost” in the users table. Have you tried setting this column to “false” for the ghost user?