mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
2fc7e9f47e
New flag enforces removal of all versions of the object in remote object storage. See: - https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5121 - https://docs.victoriametrics.com/vmbackup.html#permanent-deletion-of-objects-in-s3-compatible-storages
13 lines
576 B
Go
13 lines
576 B
Go
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. "+
|
|
"See: https://docs.victoriametrics.com/vmbackup.html#permanent-deletion-of-objects-in-s3-compatible-storages")
|
|
)
|