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

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

Let’s i try to explain step by step how delete data in 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.