Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerkstage.dev

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.

What did you think of this content?

Clerk © 2023