Problem/Motivation
Drupal uses the word "Cancel" to describe the deletion and disabling of user accounts. This leads to a duplication of the word "Cancel" on the form as
- "Cancel account": Delete or disable the account. Depending on the settings for user accounts, the user might see different options above the button to choose from or just the button.
- "Cancel" = abort the action.


This problem is addressed in #1649286: Reword user cancellation form buttons with a discussion whether to replace "Cancel" with "Abort" and some other proposals. The approach that's most consistent with buttons to confirm or abort actions to keep "Cancel" for aborting and change the confirmation button to "Apply changes".
However then we end up with a disconnect between the question Are you sure you want to cancel your account? and the cancel button that aborts the action.
Proposed resolution
"Cancellation" was probably chosen because it can cover the options "Disable" and "Delete" without misleading the user. "Remove" is another word that could fulfill this function and that would not clash with the filter button.
Changes would need to be done on the Account settings page, on the user account form, in the actions on the People page, and in the permissions.
Remaining tasks
User interface changes
THis is a UI text change.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| User-cancel-their-account-with-options.png | 17.47 KB | ifrik | |
| User-cancel-their-own-account.png | 11.31 KB | ifrik |
Comments
Comment #2
wturrell commentedAs mentioned in #1649286: Reword user cancellation form buttons, this was, I believe, the main discussion when these options were first added:
#8: Let users cancel their accounts
Comment #3
ifrikThanks wturrell,
that's really useful, and it shows how assumptions of what is desired by users (or even required by law) can change over time.
Comment #4
ifrikUpdated the issue summary to move adding a separate message into a new issue #2978063: Give information to user whether account is disabled or deleted when cancelled
Comment #5
ifrikComment #6
wturrell commentedThere's potentially a third issue here with the last option:
This feels like an ambiguous message for end users, who may wonder as to the identity of the (by definition, undiscoverable?) "Anonymous user", and what he or she might do with their content.
Perhaps administrators should still see the original message, but other roles get:
Note in the source, the word Anonymous comes from
user.settings.anonymousComment #7
wturrell commentedAlso…
That screen (either version) with the 'Cancel account' button: it very much gives the impression clicking the button is the final stage of the process, whereas actually what happens when you submit it is you get the green status message below and are sent the 'Account Cancellation confirmation' email as specified in /admin/config/people/accounts (clicking the link it that one really is irreversible).
We ought to mention on the first screen there's an email confirmation process.
Comment #8
ifrikThanks wturrell,
that are good points. However, whether a confirmation email is required depends on the account settings.
Could you add this to [#2978603]? Then we can deal in that issue with text that should be generated based on the account settings, and keep this on to just change the existing text that is displayed to users independent of those settings.
Comment #9
wturrell commented#2978603 doesn't appear to exist?
EDIT: Ah sorry, #2978063: Give information to user whether account is disabled or deleted when cancelled...
I'm a bit puzzled about the ability to turn off the cancellation email. The registration confirmation can obviously be toggled, but I see nothing for cancellation (other than 'Notify user when account is cancelled', which is a checkbox on the (second) Account Cancelled mail, default off). Also nothing besides 'Cancel own account' and 'Select method for cancelling own account' in Permissions.
And yet, in the source (/core/modules/user/src/Form/UserCancelForm.php:73) there's code for a "Require email confirmation to cancel account'" checkbox, which I don't see anywhere despite being logged in as user1.
Suspiciously, on all my 8.5.4 installs, if you go to /admin/config/people/accounts, scroll down and click on 'Account cancellation confirmation', the email body textarea is only 3 rows high, much shorter than the rest, so I'm wondering if that's broken..
Comment #15
aaronmchaleMarking this as a duplicate of #3199972: Improve user interface text on the account cancellation screen, which will address the issues mentioned here and is being actively iterated on at Drupal UX Meetings.