Skip to content

deleteScratchOrg

deleteScratchOrg(options, devHubAlias): Promise<void>

Defined in: packages/simply-cicd-core/src/build/deleteScratchOrg.ts:37

Authenticates to the Dev Hub that owns the scratch org and deletes it.

devHubAlias must already be authenticated by the calling pipeline. Deletion failures are logged, not thrown, matching the original behavior: a scratch org that fails to delete just needs manual cleanup later, and shouldn’t fail an otherwise-successful pipeline run.

DeleteScratchOrgOptions

string

Promise<void>