I'm getting an error when I'm trying to delete all items from a table using postgres + prisma

I have the following schema:

```
model Profile {
  id String @id @default(cuid())
  projects Project[]
}

model Project {
  id String @id @default(cuid())

  profile Profile @relation(fields: [profile_email], references: [email], onDelete: NoAction)
  profile_email String
}

```

Here's the code with the client:

```js
const { PrismaClient } = require("@prisma/client");

const prisma = new PrismaClient();

(async () => {
  await prisma.profile.deleteMany({});

  await prisma.project.deleteMany({});
})();

```

The error I get is this -

```
Invalid `prisma.profile.deleteMany()` invocation in
clear.js:6:24

  3 const prisma = new PrismaClient();
  4 
  5 (async () => {
→ 6   await prisma.profile.deleteMany(
  Foreign key constraint failed on the field: `Project_profile_email_fkey (index)`

```

How can we solve this? Thanks in advance.