How to delete properties and DB columns in Pega cloud set up ? thanks
I think this requires manual deletion. Before removing the property and database column, ensure there are no remaining references to the property and verify any external class mappings that may depend on it.
To delete the columns in DB, there are two ways of doing it.
- You can write a query in connect-SQL rule and run it using an activity.
OR - Raise a CC to Pega support with all the details.
Thank you, there is a DB wizard, it has delete column checkbox so I was wondering if we can leverage that too in PROD, I know it works in the dev!!
yes but I was wondering if anyone has used delete column option from DB wizard in prod. It works in the dev but I was trying to make sure it works in prod too, thank you
I would recommend to push DADT instance from Dev to higher environments. This is to ensure that we have the same columns across all environments. This will help you if you optimize new columns, then it will be consistent across all environments.
Hi @SharadK17674862 ,
We can do in 3 ways
-
Click on → Configure > System > Database > Optimize Schema
Yes, you can delete it if it is the unused column. I did many times
However, if the column contains data, you won’t be able to delete it. The column will not be dropped.
click Configure > System > Database > Optimize Schema
OR
- You can create an Activity then using the RDB method and a Connect SQL rule
OR
- You can raise a CC request in the MSP portal and provide the
DROP COLUMNquery for the respective column. The Pega team will take the necessary action on your behalf.
I hope this will help you
Thanks,
Ashok
Hey Sarad, we addressed this a few weeks ago. We created the SQL to drop the columns and raised a cloud change request, which resolved the issue
