- Pre-Deletion Confirmation Dialogue: A Confirm Dialog can be used to display a warning to the user before the action, such as ‘You are about to permanently delete your account. This action cannot be undone. Do you want to continue?’
- Post-Action Redirection: After the account is deleted, you can redirect the user to the login screen or an information page using the Navigate action.
- Closing Data Links: It is recommended to perform data cleanup in the background after the action to ensure that no data linked to other users is left behind.
Technical Risks and Precautions
- Irreversible Deletion: The user's account and all associated data are permanently deleted. The user must be asked for confirmation before the deletion process (Confirm Dialog).
- Unauthorised User Deletion:Security vulnerabilities may arise, such as the deletion of another user account. The action should be configured to only work on the logged-in user (CurrentUser).
- Missing Redirection: The user may be left on a blank screen after the deletion. The user should be redirected to the login screen with the Navigate action.
- Data Inconsistency: Data related to the deleted user may remain in the system. Make sure that all related data is removed or anonymised after the action.
Delete My Account allows users to securely and permanently delete their accounts. The user experience should be made secure and controlled with complementary actions such as a confirmation mechanism and redirection afterwards.