org delete snapshot

Delete a scratch org snapshot.

Dev Hub admins can delete any snapshot. Users can delete only their own snapshots, unless a Dev Hub admin gives the user Modify All permission, which works only with the Salesforce license.

force:org:snapshot:delete

Flag Name (Long)Flag Name (Short)Description
‑‑api‑versionN/AType: Value

Override the api version used for api requests made by this command
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑jsonN/AType: Boolean

Format output as json.
‑‑no‑prompt‑pType: Boolean

Don’t prompt the user to confirm the deletion.
‑‑snapshot‑sType: Value
Required

Name or ID of snapshot to delete.

The IDs of scratch org snapshots start with 0Oo.
‑‑target‑dev‑hub‑vType: Value
Required

Username or alias of the Dev Hub org. Not required if the target-dev-hub configuration variable is already set.

Delete a snapshot from the default Dev Hub using the snapshot ID:

Delete a snapshot from the specified Dev Hub using the snapshot name: