Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/live/deps.ts>supabase.GoTrueAdminApi#deleteUser

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
method supabase.GoTrueAdminApi.prototype.deleteUser
Re-export
import { supabase } from "https://deno.land/x/live@1.53.2/deps.ts";
const { GoTrueAdminApi } = supabase;

Delete a user. Requires a service_role key.

Parameters

id: string

The user id you want to remove.

optional
shouldSoftDelete: boolean

If true, then the user will be soft-deleted from the auth schema. Defaults to false for backward compatibility.

This function should only be called on a server. Never expose your service_role key in the browser.