Allow users to delete their own account
To install Delete Me, follow these steps:
- Download & unzip the file and place the
deleteme
directory into yourcraft/plugins
directory - -OR- do a
git clone https://github.com/watarutmnh/deleteme.git
directly into yourcraft/plugins
folder. You can then update it withgit pull
- Install plugin in the Craft Control Panel under Settings > Plugins
- The plugin folder should be named
deleteme
for Craft to see it. GitHub recently started appending-master
(the branch name) to the name of the folder for zip file downloads.
Delete Me works on Craft 2.4.x and Craft 2.5.x.
Delete Me is a plugin for Craft CMS to allow users to delete their own account from front end.
let logged-in user to send a request to delete its own account. You can set a url to redirect. Use form like this:
<form method="post">
{{ getCsrfInput() }}
<input type="hidden" name="action" value="deleteMe/index">
<input type="hidden" name="redirect" value="/url/redirect/to">
<input type="hidden" name="userId" value="{{ currentUser.id }}">
<button type="submit">Remove my account</button>
</form>