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‑version | N/A | Type: Value Override the api version used for api requests made by this command |
‑‑flags‑dir | N/A | Type: Value Import flag values from a directory. |
‑‑json | N/A | Type: Boolean Format output as json. |
‑‑no‑prompt | ‑p | Type: Boolean Don’t prompt the user to confirm the deletion. |
‑‑snapshot | ‑s | Type: Value Required Name or ID of snapshot to delete. The IDs of scratch org snapshots start with 0Oo. |
‑‑target‑dev‑hub | ‑v | Type: 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: