|
| 1 | +-- Below should be delete queries for the Auth Partner - pms-111999: |
| 2 | + |
| 3 | +-- From PMS DB: |
| 4 | +\c mosip_pms postgres |
| 5 | +delete FROM pms.oidc_client where policy_id in (select id from pms.auth_policy where cr_by='pms-111999'); |
| 6 | +delete FROM pms.partner_policy where policy_id in (select id from pms.auth_policy where cr_by='pms-111999'); |
| 7 | +delete FROM pms.partner_policy_request where policy_id in (select id from pms.auth_policy where cr_by='pms-111999'); |
| 8 | +delete from pms.auth_policy where cr_by='pms-111999'; |
| 9 | +delete from pms.policy_group where cr_by='pms-111999'; |
| 10 | +delete FROM pms.partner_policy where cr_by='pms-111999'; |
| 11 | +delete FROM pms.partner_policy_request where cr_by='pms-111999'; |
| 12 | +delete from pms.partner where cr_by='pms-111999'; |
| 13 | +delete FROM pms.user_details where cr_by='pms-111999'; |
| 14 | + |
| 15 | +-- From Esignet DB: |
| 16 | +\c mosip_esignet postgres |
| 17 | +delete FROM esignet.client_detail where rp_id='pms-111999'; |
| 18 | + |
| 19 | +-- From IDA DB: |
| 20 | +\c mosip_ida postgres |
| 21 | +delete FROM ida.oidc_client_data where partner_id='pms-111999'; |
| 22 | +delete FROM ida.partner_data where partner_id = 'pms-111999'; |
| 23 | + |
| 24 | +-- From KeyManager DB: |
| 25 | +\c mosip_keymgr postgres |
| 26 | +delete from keymgr.key_alias where app_id = 'PARTNER' AND ref_id = 'pms-111999'; |
| 27 | + |
| 28 | +-- Below should be delete queries for the Device Partner - pms-111998: |
| 29 | + |
| 30 | +-- From PMS DB: |
| 31 | +\c mosip_pms postgres |
| 32 | +delete from pms.device_detail_sbi where dprovider_id='pms-111998'; |
| 33 | +delete from pms.device_detail where dprovider_id='pms-111998'; |
| 34 | +delete from pms.secure_biometric_interface where provider_id='pms-111998'; |
| 35 | +delete from pms.partner where cr_by='pms-111998'; |
| 36 | +delete FROM pms.user_details where cr_by='pms-111998'; |
| 37 | + |
| 38 | +-- From KeyManager DB: |
| 39 | +\c mosip_keymgr postgres |
| 40 | +delete from keymgr.key_alias where app_id = 'PARTNER' AND ref_id = 'pms-111998'; |
| 41 | + |
| 42 | +-- From IDA DB: |
| 43 | +\c mosip_ida postgres |
| 44 | +delete FROM ida.partner_data where partner_id = 'pms-111998'; |
| 45 | + |
| 46 | +-- Below should be delete queries for the FTM Partner - pms-111888: |
| 47 | +-- From PMS DB: |
| 48 | +\c mosip_pms postgres |
| 49 | +delete from pms.ftp_chip_detail where foundational_trust_provider_id='pms-111888'; |
| 50 | +delete from pms.partner where cr_by='pms-111888'; |
| 51 | +delete FROM pms.user_details where cr_by='pms-111888'; |
| 52 | + |
| 53 | +-- From IDA DB: |
| 54 | +\c mosip_ida postgres |
| 55 | +delete FROM ida.partner_data where partner_id = 'pms-111888'; |
| 56 | + |
| 57 | +-- Below should be delete queries for the Partner ADMIN - pms-111777: |
| 58 | +-- From PMS DB: |
| 59 | +\c mosip_pms postgres |
| 60 | +delete from pms.auth_policy where cr_by='pms-111777'; |
| 61 | +delete from pms.policy_group where cr_by='pms-111777'; |
| 62 | +delete from pms.partner where cr_by='pms-111777'; |
| 63 | +delete FROM pms.user_details where cr_by='pms-111777'; |
| 64 | + |
| 65 | +-- From KeyManager DB: |
| 66 | +\c mosip_keymgr postgres |
| 67 | +delete from keymgr.key_alias where app_id = 'PARTNER' AND ref_id = 'pms-111777'; |
| 68 | + |
| 69 | +-- Below should be delete all uploaded certs: |
| 70 | +-- From IDA DB: |
| 71 | +\c mosip_ida postgres |
| 72 | +delete FROM ida.ca_cert_store where cert_subject ='CN=PMS_API_CA,OU=PMS_API_CA,O=PMS_API_CA,L=PN,ST=MH,C=IN'; |
| 73 | +delete FROM ida.ca_cert_store where cert_subject ='CN=PMS_API_SUB_CA,OU=PMS_API_SUB_CA,O=PMS_API_SUB_CA,L=PN,ST=MH,C=IN'; |
| 74 | +delete from ida.ca_cert_store where cert_subject ='CN=PMS_API_ABC_ORG,OU=PMS_API_ABC_ORG,O=PMS_API_ABC_ORG,L=PN,ST=MH,C=IN'; |
| 75 | + |
| 76 | +-- From KeyManager DB: |
| 77 | +\c mosip_keymgr postgres |
| 78 | +delete FROM keymgr.ca_cert_store where cert_subject ='CN=PMS_API_CA,OU=PMS_API_CA,O=PMS_API_CA,L=PN,ST=MH,C=IN'; |
| 79 | +delete FROM keymgr.ca_cert_store where cert_subject ='CN=PMS_API_SUB_CA,OU=PMS_API_SUB_CA,O=PMS_API_SUB_CA,L=PN,ST=MH,C=IN'; |
| 80 | +delete from keymgr.ca_cert_store where cert_subject ='CN=PMS_API_ABC_ORG,OU=PMS_API_ABC_ORG,O=PMS_API_ABC_ORG,L=PN,ST=MH,C=IN'; |
| 81 | +delete from keymgr.partner_cert_store where cert_subject ='CN=PMS_API_ABC_ORG,OU=PMS_API_ABC_ORG,O=PMS_API_ABC_ORG,L=PN,ST=MH,C=IN'; |
0 commit comments