import { PrismaClient } from '@prisma/client'; const prisma = new PrismaClient(); async function main() { const user = await prisma.user.findUnique({ where: { email: 'martin.bierschenk@gmail.com' } }); if (!user) return; // Delete all tasks in the target range created today const res = await prisma.task.deleteMany({ where: { userId: user.id, scheduledDate: { gte: new Date('2026-03-15T00:00:00Z'), lte: new Date('2026-04-15T00:00:00Z') }, createdAt: { gte: new Date(new Date().setHours(0,0,0,0)) } } }); console.log(`Deleted ${res.count} tasks from martin`); } main().finally(() => prisma.$disconnect());