Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.com

deleteUser()

Deletes a user given a valid ID. Throws an error otherwise.

const userId = 'my-user-id'; const user = await clerkClient.users.deleteUser(userId);

Required parameters

NameTypeDescription
userIdstringThe ID of the user to delete.

Last updated on August 16, 2023

What did you think of this content?

Clerk © 2023