Topic on Project:Support desk

How do I enable deleting user accounts?

10
Monocero (talkcontribs)

How do I enable deleting user accounts? Where do I have to set it?


I am asking for a guide.

AhmadF.Cheema (talkcontribs)

The common, non-problematic MediaWiki method of user accounts "deletion" is by merging the undesired account into an anonymous account.

For details, see Extension:UserMerge.

Monocero (talkcontribs)

I mean deletion a normal user account. I would like to add such a feature.

AhmadF.Cheema (talkcontribs)

Actual deletion can probably be done through working directly on the database, but such is highly discouraged. Deleting a user will mess up various MediaWiki functions such as page histories, due to which it is better to merge users instead of deleting them.

Monocero (talkcontribs)

I understand. So I can delete an empty test account in the database?

AhmadF.Cheema (talkcontribs)
Examknow (talkcontribs)

There is a way t do it by deleting all of their contributions and other logged actions and then delete the user row in the mw_users table. If I am not making any sense please let me know.

Monocero (talkcontribs)

Thank you for your help.

@Examknow

Where is the mw_users table?

Examknow (talkcontribs)

It should just be the users table in your mediawiki database. I only put "mw_" in as the example prefix as that is what it defaults to when you install your wiki.

Monocero (talkcontribs)

Thank you for your help. Users are in the database in the "user" table.