import { Client, Users } from "[email protected]";
type Appwrite = {
endpoint: string;
project: string;
key: string;
self_signed: boolean;
};
export async function main(auth: Appwrite, id: string) {
const client = new Client()
.setEndpoint(auth.endpoint)
.setProject(auth.project)
.setKey(auth.key);
const users = new Users(client);
return await users.delete(id);
}
Submitted by hugo989 1 day ago