Avoid deleting users whenever possible. For security of user assets, Privy does not
delete the embedded wallet, and instead “soft deletes” it by disassociating it from the deleted
user and archiving the data.While wallet recovery may be technically possible if the user still has access to their login method, the recovery process requires significant internal coordination and can take considerable time to complete. There is no guarantee of successful recovery.Treat all user deletions as permanent and irreversible. Only delete users when absolutely necessary, and confirm you have exhausted all other options before proceeding.
Use the This method will throw an error if the deletion operation failed (e.g. due to an invalid Privy ID).
PrivyClient’s delete method from the users() interface to delete a user. As a parameter, pass the user’s Privy ID as a string:
