Created
November 29, 2017 23:24
-
-
Save mshanemc/e5d782683c93a2117fde72570f8301be to your computer and use it in GitHub Desktop.
cleaning up old scratch orgs from your dev hub with SFDX
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
// ScratchOrgInfo is an object in your dev hub | |
delete [select id from ScratchOrgInfo where Status = 'Deleted']; |
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
# reference an apex script | |
sfdx force:apex:execute -f scripts/cleanScratchInfo.cls -u hub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment