Skip to main content

Deleting users

From your backend, you can also delete users from your Privy app.

To delete a user from your app, you can call Privy's deleteUser method with their Privy DID:

await privy.deleteUser('did:privy:XXXXXX');

This method will throw an error if the deletion operation failed (e.g. due to an invalid Privy DID).