This would be a great feature and I fully support it. I used to have a ‘delete account’ option for my SMF install and at least four people used it. Some of them simply weren’t interested anymore and others were not happy when I and other members caught them in their self-serving chicanery and decided to flounce/rage quit.
This is a compromise: they want to ‘leave’ and not be associated with the community and I don’t want their posts deleted for the database’s integrity.
I agree with @markwilkin in that admin approval is required to complete the info scrubbing process. I also had one instance where a user wanted to rage quit and my SMF install needed my OK to complete the account deletion. I PMed the user and found out there was a misunderstanding. If SMF auto-approved it, that user would have been gone and I would not have been able to intervene and see if it was a problem that was never there or can be solved.
However, as @codinghorror mentioned, an account with one or two posts should easily be deleted by the user since it has no substantial history with the community
I’ve learned my lesson with the ‘right to be forgotten’ concept and lack of a solid TOS with the lisence clearly stated. Someone wanted to infocide everything and I compromised that I would delete their photos. But it still left out major context for some discussions where the photos were integral to understand the conversations.