Documentation Index
Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
This guide is currently React only.
Introduction
This guide shows you how to implement account deletion functionality without using Dynamic’s UI components. When a user deletes their account, all associated data will be permanently removed, including their wallets, embedded wallets, verified credentials, etc.Using our UI
The widget includes account deletion in the Account & Security section. Users can self-serve deletion from there.
Using your UI
Use theuseDeleteUserAccount hook to handle account deletion with loading states and error handling.
React
Best Practices
- Always confirm deletion: include a confirmation step before proceeding.
- Clearly explain what data will be deleted and that the action is permanent.
Hook Types and Functions
TheuseDeleteUserAccount hook provides:
deleteUser: Function to initiate account deletionisLoading: Boolean indicating if deletion is in progresserror: Error object if deletion fails