Delete WORM files overview
You can delete Enterprise-mode WORM files during the retention period using the privileged delete feature. Before you can use this feature, you must create a SnapLock administrator account and then using the account, enable the feature.
Create a SnapLock administrator account
You must have SnapLock administrator privileges to perform a privileged delete. These privileges are defined in the vsadmin-snaplock role. If you have not already been assigned that role, you can ask your cluster administrator to create an SVM administrator account with the SnapLock administrator role.
-
You must be a cluster administrator to perform this task.
-
You must have logged in on a secure connection (SSH, console, or ZAPI).
-
Create an SVM administrator account with the SnapLock administrator role:
security login create -vserver SVM_name -user-or-group-name user_or_group_name -application application -authmethod authentication_method -role role -comment comment
The following command enables the SVM administrator account
SnapLockAdmin
with the predefinedvsadmin-snaplock
role to accessSVM1
using a password:cluster1::> security login create -vserver SVM1 -user-or-group-name SnapLockAdmin -application ssh -authmethod password -role vsadmin-snaplock
Enable the privileged delete feature
You must explicitly enable the privileged delete feature on the Enterprise volume that contains the WORM files you want to delete.
The value of the -privileged-delete
option determines whether privileged delete is enabled. Possible values are enabled
, disabled
, and permanently-disabled
.
|
-
Enable privileged delete for a SnapLock Enterprise volume:
volume snaplock modify -vserver SVM_name -volume volume_name -privileged-delete disabled|enabled|permanently-disabled
The following command enables the privileged delete feature for the Enterprise volume
dataVol
onSVM1
:SVM1::> volume snaplock modify -vserver SVM1 -volume dataVol -privileged-delete enabled
Delete Enterprise-mode WORM files
You can use the privileged delete feature to delete Enterprise-mode WORM files during the retention period.
-
You must be a SnapLock administrator to perform this task.
-
You must have created a SnapLock audit log and enabled the privileged delete feature on the Enterprise volume.
You cannot use a privileged delete operation to delete an expired WORM file. You can use the volume file retention show
command to view the retention time of the WORM file that you want to delete. For more information, see the man page for the command.
-
Delete a WORM file on an Enterprise volume:
volume file privileged-delete -vserver SVM_name -file file_path
The following command deletes the file
/vol/dataVol/f1
on the SVMSVM1
:SVM1::> volume file privileged-delete -file /vol/dataVol/f1