Prisma ghost connections

I am having an issue because I have a many-to-many database, and whenever I delete an entry I naturally can't get it to delete on cascade.

Something that I have tried and works is going through the ones I am going to delete and disconnecting them first, but I think this is really inefficient.

Below are some images of what is happening. Does anyone have any suggestions on how I can improve this or if it's fine just leaving those ghost connections?
image.png
Was this page helpful?