You will not be able to the delete the account programmatically, this would be a huge issue if you could.
Also start with iOS 5.1 you are no longer able to open the setting.app.
The only thing you can do is explain to your user how to delete there account.