function bp_activity_remove_data($user_id) { // Clear the user's activity from the sitewide stream and clear their activity tables BP_Activity_Activity::delete_activity_for_user($user_id); // Remove the deleted users activity tables BP_Activity_Activity::kill_tables_for_user($user_id); do_action('bp_activity_remove_data', $user_id); }