2023-10-10 14:13:23 +02:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
|
|
|
"flag"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// DeleteAllObjectVersions is a flag for whether to prune previous object versions when deleting an object.
|
|
|
|
DeleteAllObjectVersions = flag.Bool("deleteAllObjectVersions", false, "Whether to prune previous object versions when deleting an object. "+
|
|
|
|
"By default, when object storage has versioning enabled deleting the file removes only current version. "+
|
|
|
|
"This option forces removal of all previous versions. "+
|
2024-04-18 01:57:04 +02:00
|
|
|
"See: https://docs.victoriametrics.com/vmbackup/#permanent-deletion-of-objects-in-s3-compatible-storages")
|
2023-10-10 14:13:23 +02:00
|
|
|
)
|