Skip to content

deleteTargetScratchOrg

deleteTargetScratchOrg(aliasOrUsername?): Promise<string>

Defined in: packages/simply-cicd-core/src/sfOrg.ts:241

Deletes a scratch org, as sf org delete scratch --no-prompt does: refuses a non-scratch org, treats an already-deleted org as success, and removes the local auth for one whose domain no longer resolves.

string

The scratch org. Omit to use the default target org.

Promise<string>

The deleted org’s username.

If the org isn’t a scratch org, or the Dev Hub rejects the delete.