Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Manage Scratch Orgs from the Dev Hub Org
In the Dev Hub org, the ActiveScratchOrg standard object represents the scratch orgs that are currently in use. The ScratchOrgInfo standard object represents the requests that were used to create scratch orgs and provides historical context.
- Log in to the Dev Hub org as the System Administrator or as a user with the Salesforce DX permissions.
-
From the App Launcher, select Active Scratch Orgs to see a list of
all active scratch orgs.
To view more details about a scratch org, click the link in the Number column.
-
To delete an active scratch org from the Active Scratch Orgs list view, choose
Delete from the dropdown.
Deleting an active scratch org doesn’t delete the request (ScratchOrgInfo) that created it, but it does free up a scratch org so that it doesn’t count against your allocations.
-
To view the requests that created the scratch orgs, select Scratch Org
Infos from the App Launcher.
To view more details about a request, click the link in the Number column. The details of a scratch org request include whether it's active, expired, or deleted.
-
To delete the request that was used to create a scratch org, choose
Delete from the dropdown.
Deleting the request (ScratchOrgInfo) also deletes the active scratch org.