Prevent XMPP client to create and delete account

Hi,
I noticed that it’s possible to create a new account from a XMPP client such as Gajim. It’s also possible to delete his own account.

How do I prevent someone to create a new account or delete his own account on OpenFire ?

I want that creation and deletion of account are only available from REST or web console.

you must set up in-band registration to false and disable anonymous login from client.

Thank you Hiren, it solves both issues.
Those parameters are accessible from “Server -> Server Settings -> Registration & Login.”