Skip Navigation

[Resolved] Delete all child post when deleting parent post

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 5 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2701358

Dear Sir/Madam,

I know how to disconnect the relationship between posts, how can I delete all child posts when I delete the parent post? Will it be permanently deleted or put into the trash?

I want to delete all permanently.

#2701405

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

There is no such feature to automatically delete the child posts But you can achieve this by adding the hook that will help you to achieve your goal.

Here is few related ticket that might help you to delete the related child posts when parent post will be deleted:
- https://toolset.com/forums/topic/delete-related-posts-and-their-attachments-when-deleting-parent-post/
- https://toolset.com/forums/topic/delete-child-posts-when-parent-post-is-deleted/#post-1885083

Can you please try to use the hook shared with above related ticket and try to resolve your issue.