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.
Parameters
Section titled “Parameters”aliasOrUsername?
Section titled “aliasOrUsername?”string
The scratch org. Omit to use the default target org.
Returns
Section titled “Returns”Promise<string>
The deleted org’s username.
Throws
Section titled “Throws”If the org isn’t a scratch org, or the Dev Hub rejects the delete.