Gitlab-rails console - deleting a user

Hi There,

I am new to this forum and gitlab and trying to get an installation done. I use SSO which looks to be working (OmniAuth); done a few of those already.

I turned on “omniauth_auto_link_saml_user” option. Then I created a user on the command line with “” and saved it. Then, I deleted the user (e-mail address changed) with “!”. Then I created the same user with the “u =” and set “u.username” to the same value as before. Now, when I try to do a “!”, it says: “ActiveRecord::RecordInvalid: Validation failed: Username has already been taken”.

I tried to create a new user from the gitlab GUI and then deleted it with the option what removes all contributions. That allows the creation of the user with the same user names many times. However, command line delete with gitlab-rails ends up thinking that the user still exists.

My question is, how do I purge a user deleted from the command line properly when it does not appear in the web GUI at all, nor in command line “User.all” but still it cannot be saved for that the user name is already taken?

Thank you,