Accidentally deleted admin user!

Talwinder, although I appreciate your attempt to help people recovering from this problem, reviving a thread that many years old probably isn’t the best way of doing this. Furthermore, I would appreciate you writing down your solution, rather than directing people away from this community into your private inbox.

In any case: To temporarily restore access to the admin console of Openfire, you can configure Openfire to use a a One-Time Access Token. This process is described in https://discourse.igniterealtime.org/t/how-to-reset-admin-password-on-openfire-version-4-3-1/