Delete users in Magento frontend

If you need the possibility to let the users delete their own accounts, you can use the following snippet in a corresponding controller or observer to delete users in frontend:

 

Image system configuration field

To add an image selector field to your system configuration: