For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

JavaScript: deleteUser

Delete a user. Requires a service_role key. Returns the user that was deleted. In cases of concurrent updates, the user object returned might not accurately reflect the user information at the time of deletion.

Parameters

Examples

Removes a user

const { data, error } = await supabase.auth.admin.deleteUser(
  '715ed5db-f090-4b8c-a067-640ecee36aa0'
)