Please take extreme care when deleting users. 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. If the user still has access to their login method, their wallet can
be recovered after deletion. Reprovisioning a deleted wallet involves a support process, so please
take care to only delete users that you intend to delete.
Use the This method will throw an error if the deletion operation failed (e.g. due to an invalid Privy DID).
PrivyClient
’s deleteUser
method to delete a user. As a parameter, pass the user’s Privy DID as a string
: