mc legalhold clear

Clears the legal hold from an object.

Syntax

CLI
mc legalhold clear [FLAGS] TARGET

FLAGS:
  --recursive, -r                  clear legal hold recursively
  --version-id value, --vid value  clear legal hold of a specific object version
  --rewind value                   clear legal hold on an object version at specified time
  --versions                       clear legal hold on multiple versions of object(s)
  --json                           enable JSON lines formatted output
  --debug                          enable debug output
  --insecure                       disable SSL certificate verification
  --help, -h                       show help

Parameters

Parameter Description
recursive Clears the legal hold recursively from all objects.
version-id Clears legal hold only from the specified version of the object.
rewind Rolls back objects to the version that was present in the specified point of time.
versions Clears legal hold from all versions of the object.
json Enables JSON formatted output.
debug Enables output for debugging.
insecure Disables SSL verification.
help Show this help.

Examples

  1. Clear the legal hold from a specific object:
    CLI
    /opt/mapr/bin/mc legalhold clear newmoss/worm2/f2
    
       Object legal hold successfully cleared for f2.
  2. Clear the legal hold from a specific version of an object:
    CLI
    /opt/mapr/bin/mc legalhold clear newmoss/worm2/f2 --version-id 00000000000000000005
    
       Object legal hold successfully cleared for f2 (version-id=00000000000000000005).