
SELECT id FROM client WHERE uid = '718eb53f-4267-4d5c-9c9a-2d2bb45941ed';


DELETE FROM account_client                                 WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM account_invite                                 WHERE  for_client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM action_item                                    WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM bill                                           WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client                                         WHERE  duplicate_of_client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client                                         WHERE  source_client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM note                                           WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM pro                                            WHERE  shadow_client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM amendment                                      WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM app_session                                    WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM app_session                                    WHERE  in_meeting_for_client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM appointment                                    WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM bill_care_month_entry                          WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM claim                                          WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM care_month                                     WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM care_month_entry                               WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_ally_update                             WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_bdt_day                                 WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_bdt_device                              WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_bdt_measurement                         WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_bdt_month                               WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_cm_rm_reason                            WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_document                                WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_eligible_refresh                        WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_info_line                               WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_info_line_update                        WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_mb_payer_validation_result              WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_mcp_update                              WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM measurement                                    WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_memo                                    WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_memo_update                             WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_name_change                             WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_onboarding_data_json_update             WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_point_update                            WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_primary_coverage                        WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_pro_access                              WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_pro_change                              WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_program                                 WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_sms                                     WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_sms_number                              WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM client_tag                                     WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM doc                                            WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM dx                                             WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM erx                                            WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM handout_client                                 WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM imail                                          WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM incoming_report                                WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM internal_message                               WHERE  regarding_client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM invitation                                     WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM isms                                           WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM lead                                           WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM mb_claim                                       WHERE  mb_client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM mc_code_check                                  WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM mcp_request                                    WHERE  for_client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM measurement_confirmation_number                WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM page                                           WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM point                                          WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM pro_client_view                                WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM pro_client_work                                WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM pro_transaction                                WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM recurring_appointment                          WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM relationship                                   WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM relationship                                   WHERE  contact_client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM section                                        WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM shipment                                       WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM simple_sms_reminder                            WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM stamp                                          WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM status                                         WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM supply_order                                   WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM task                                           WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM ticket                                         WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;
DELETE FROM user_event_log                                 WHERE  client_id IN  (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY') ;

DELETE FROM client WHERE id IN (SELECT id FROM client WHERE client_engagement_status_category = 'DUMMY');