Last active
September 30, 2020 09:44
-
-
Save tugce/1f0e529417f1364b0d0a9a8875162202 to your computer and use it in GitHub Desktop.
For cleaning up the Copado records
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void deleteCopadoRelatedData(){ | |
delete [SELECT Id From copado__Copado_Notification__c]; | |
delete [SELECT Id From copado__User_Story__c]; | |
delete [SELECT Id From copado__Project__c]; | |
delete [SELECT Id From copado__Sprint__c]; | |
delete [SELECT Id From copado__Release__c]; | |
delete [SELECT Id From copado__Theme__c]; | |
delete [SELECT Id From copado__Test_Run__c]; | |
delete [SELECT Id From copado__Test_Script__c]; | |
delete [SELECT Id From copado__Deployment_Flow__c]; | |
delete [SELECT Id From copado__Git_Repository__c]; | |
delete [SELECT Id From copado__Snapshot_Difference__c]; | |
delete [SELECT Id From copado__OrgDiff__c]; | |
delete [SELECT Id From copado__Scheduled_Job__c]; | |
delete [SELECT Id From copado__Connection_Behavior__c]; | |
delete [SELECT Id From copado__Quality_Gate__c]; | |
delete [SELECT Id From copado__Metadata_Group__c]; | |
delete [SELECT Id From copado__Destination_Org__c]; | |
delete [SELECT Id From copado__Deployment__c]; | |
delete [SELECT Id From copado__Promotion__c]; | |
delete [SELECT Id From copado__Environment__c]; | |
delete [SELECT Id From copado__Org__c]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment