Deactivate User Plugin for WordPress
WordPress plugin that allows a user to deactivate their own user account from within the WordPress login area, or via the shortcode.
To create a frontend page that immediately deactivates the currently logged in user's account, use the following short code. This can be useful when developing a custom frontend.
Note: When a user's account is deactivated all their posts/pages are set to 'draft' status.