Skip to main content
NetApp Knowledge Base

Cannot delete ONTAP Snapshot with message 'has not expired or is locked'

Views:
904
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

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 -      -          

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.