Recently one of our project we need to delete some date from the custom table once user deleted. So that 10 minutes of google got the solutions and solutions is as per below.

Note: Once the user deletes that time “delete_user” action will call and action is as per below.

Let’s I try to explain step by step how to delete data in the custom table.

In our case, we have to delete data in six table and all tables are as per screenshot.

PHP Code is as per below.

Check and let me know have any question.