I have a table from which I create a tree with multiple levels and parents. The table structure looks like this.

When I delete the “TitleID”, I want all the children and even the grandchildren to be deleted.
What is the easiest way to do such in sql.
If I simple delete with “where ParentID=TitleID”, only children with level 1 depth are deleted.
1 Answer