Cannot delete ONTAP Snapshot with message 'has not expired or is locked'
Applies to
- ONTAP 9
- Snapshots
Issue
Unable to delete a snapshot with the following message:
::*> snapshot delete -vserver SVM1 -volume vol1 -snapshot vol1_daily_20221018_001520 -ignore-owners true -force true
Error: command failed: Snapshot copy
"vol1_daily_20221018_001520" of volume "vol1" in Vserver "SVM1" has not expired or is locked. Use the "snapshot show -fields owners, expiry-time" command to view the expiry and lock status of the Snapshot copy.
Snapshot show output does not list any owners or expiry time
::> snapshot show -volume vol1 -fields snapshot,busy,expiry-time,owners
vserver volume snapshot busy owners expiry-time
-------------- ------------------- ----------------------------------------- ----- ------ -----------
SVM1 vol1 vol1_daily_20221018_001520 false - -
SVM1 vol1 vol1_daily_20221022_001521 false - -
SVM1 vol1 vol1_daily_20221024_001520 false - -
SVM1 vol1 vol1_daily_20221025_001519 false - -
SVM1 vol1 vol1_daily_20221026_001520 false - -
SVM1 vol1 vol1_daily_20221027_001519 false - -
SVM1 vol1 vol1_daily_20221028_001529 false - -
SVM1 vol1 vol1_daily_20221029_001523 false - -