How to perform cascade delete of child entities while deleting a parent entity

System Information
  • Strapi Version: 4.5.6
  • Operating System: Mac
  • Database: PostgreSQL
  • Node Version: 16.9
  • NPM Version: 8.19.3
  • Yarn Version: 1.22.19

While deleting a parent need to delete all it’s related child entities as well

Like always it depends if you delete it gets deleted if you update the relationship to remove it it will stay in the db for ever

What is the syntax or the way to delete the parent entity and child entities related at once

it should delete all components but all relations will be untouched

I tried but it is deleting only the parent element, not the child elements and it’s relations