mc retention clear
Clears a retention lock from a bucket or object.
Syntax
- CLI
-
mc retention clear [FLAGS] TARGET FLAGS: --recursive, -r clear retention recursively --version-id value, --vid value clear retention of a specific object version --rewind value roll back object(s) to current version at specified time --versions clear retention of object(s) and all its versions --default set default bucket locking --json enable JSON lines formatted output --debug enable debug output --insecure disable SSL certificate verification --help, -h show help
Parameters
Parameter | Description |
---|---|
recursive |
Clear the retention lock recursively from all objects. |
version-id |
Clear retention only from the specified version of the object. |
rewind |
Rollback objects to the version that was present in the specified point of time. |
versions |
Clear retention from all versions of the object. |
default |
Clear default bucket lock. |
json |
Enable JSON formatted output. |
debug |
Enable output for debugging. |
insecure |
Disable SSL verification. |
help |
Show this help. |
Examples
- Clear the default retention mode from a bucket named finance:
- CLI
-
/opt/mapr/bin/mc retention clear newmooss/finance --default Object lock configuration cleared successfully.
- Clears retention from a specific version of an object:
- CLI
-
/opt/mapr/bin/mc retention clear newmoss/worm2/f2 --version-id 00000000000000000003 Object retention successfully cleared for newmoss/worm2/f2 (version-id=00000000000000000003).