Forrest logo
back to the snapper tool

snapper:tldr:c444d

snapper: Delete a range of snapshots.
$ snapper -c ${config} delete ${snapshot_X}-${snapshot_Y}
try on your machine

The command "snapper -c ${config} delete ${snapshot_X}-${snapshot_Y}" is used to delete a range of snapshots in the Snapper tool using a specific configuration.

Here's a breakdown of the command:

  • "snapper": This is the command-line tool for managing snapshots in openSUSE or SUSE Linux Enterprise.
  • "-c ${config}": The "-c" option specifies the configuration to be used for the operation. "${config}" is a placeholder for the name of the configuration. You need to replace it with the actual name of the configuration you want to use.
  • "delete": This option is used to indicate that the command is for deleting snapshots.
  • "${snapshot_X}-${snapshot_Y}": This is the range of snapshots you want to delete. "${snapshot_X}" and "${snapshot_Y}" are placeholders for the actual snapshot numbers or names. You need to replace them with the appropriate values, e.g., "1-5" to delete snapshots 1 to 5.

By running this command, you will delete the specified range of snapshots from the specified configuration using the Snapper tool.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the snapper tool