File size: 352 Bytes
f9629ec
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
async function main() {
    console.log("Deleting user...");
    const res = await prisma.user.deleteMany({
        where: { phone: '221781476249' }
    });
    console.log("Deleted count:", res.count);
}
main().catch(console.error).finally(() => prisma.$disconnect());