<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Snapshot deletion in Protection Manager in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-deletion-in-Protection-Manager/m-p/69917#M16303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We need to delete a lot of old snapshots (~1500) generated by PM (dfpm, daily, hourly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this in command line (for scripting) instead of using the GUI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We managed to delete a snapshot manually with the "snap delete" command. However, it did not remove the entry in the PM database (the snapshot is still visible in the GUI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NetApp support told us that it is not possible, but it seems quite unusual...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stéphane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 06:38:00 GMT</pubDate>
    <dc:creator>filer002</dc:creator>
    <dc:date>2025-06-05T06:38:00Z</dc:date>
    <item>
      <title>Snapshot deletion in Protection Manager</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-deletion-in-Protection-Manager/m-p/69917#M16303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We need to delete a lot of old snapshots (~1500) generated by PM (dfpm, daily, hourly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this in command line (for scripting) instead of using the GUI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We managed to delete a snapshot manually with the "snap delete" command. However, it did not remove the entry in the PM database (the snapshot is still visible in the GUI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NetApp support told us that it is not possible, but it seems quite unusual...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stéphane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:38:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-deletion-in-Protection-Manager/m-p/69917#M16303</guid>
      <dc:creator>filer002</dc:creator>
      <dc:date>2025-06-05T06:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Snapshot deletion in Protection Manager</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-deletion-in-Protection-Manager/m-p/69923#M16305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Stephane,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Why do you want to delete it manually ? Isnt the policy retention setting doing the job of deletion ? You can make the snapshot getting automatically deleted by reducing the retention setting in the policy of a dataset. So that the next conformance run can delete them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root@~]# dfpm policy node get -q 58&lt;/P&gt;&lt;P&gt;nodeId=1&lt;/P&gt;&lt;P&gt;nodeName=Primary data&lt;/P&gt;&lt;P&gt;hourlyRetentionCount=2&lt;/P&gt;&lt;P&gt;hourlyRetentionDuration=86400&lt;/P&gt;&lt;P&gt;dailyRetentionCount=2&lt;/P&gt;&lt;P&gt;dailyRetentionDuration=604800&lt;/P&gt;&lt;P&gt;weeklyRetentionCount=1&lt;/P&gt;&lt;P&gt;weeklyRetentionDuration=1209600&lt;/P&gt;&lt;P&gt;monthlyRetentionCount=0&lt;/P&gt;&lt;P&gt;monthlyRetentionDuration=0&lt;/P&gt;&lt;P&gt;backupScriptPath=&lt;/P&gt;&lt;P&gt;backupScriptRunAs=&lt;/P&gt;&lt;P&gt;failoverScriptPath=&lt;/P&gt;&lt;P&gt;failoverScriptRunAs=&lt;/P&gt;&lt;P&gt;snapshotScheduleId=43&lt;/P&gt;&lt;P&gt;snapshotScheduleName=Sunday at midnight with daily and hourly&lt;/P&gt;&lt;P&gt;lagWarningEnabled=Yes&lt;/P&gt;&lt;P&gt;lagWarningThreshold=129600&lt;/P&gt;&lt;P&gt;lagErrorEnabled=Yes&lt;/P&gt;&lt;P&gt;lagErrorThreshold=172800&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nodeId=2&lt;/P&gt;&lt;P&gt;nodeName=Backup&lt;/P&gt;&lt;P&gt;hourlyRetentionCount=0&lt;/P&gt;&lt;P&gt;hourlyRetentionDuration=0&lt;/P&gt;&lt;P&gt;dailyRetentionCount=2&lt;/P&gt;&lt;P&gt;dailyRetentionDuration=1209600&lt;/P&gt;&lt;P&gt;weeklyRetentionCount=2&lt;/P&gt;&lt;P&gt;weeklyRetentionDuration=4838400&lt;/P&gt;&lt;P&gt;monthlyRetentionCount=1&lt;/P&gt;&lt;P&gt;monthlyRetentionDuration=8467200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root@~]#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or by running the following cli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root@ ~]#&amp;nbsp; dfpm dataset snapshot delete help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete -- delete snapshots of volumes in a dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SYNOPSIS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dfpm dataset snapshot delete [ - D ] &amp;lt;dataset-name-or-id&amp;gt; &amp;lt;volume-name-or-id&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;snapshot-name-or-id&amp;gt; [ &amp;lt;snapshot-name-or-id&amp;gt; ... ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIPTION&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delete snapshots of a volume member of a dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If -D option is specified, only dry run results will be&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; displayed. No changes will be made to the dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root@ ~]#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To list the snapshot use the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root@ ~]#&amp;nbsp; dfpm dataset snapshot list help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; list -- list snapshots for a particular object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SYNOPSIS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dfpm dataset snapshot list [ &amp;lt;object-name-or-id&amp;gt; ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIPTION&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; list snapshots for a particular object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; object-name-or-id can be either a volume, aggregate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; storage system, vFiler unit, dataset. If object-name-or-id is not&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; specified, then all snapshots are listed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root@ ~]#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you know the volume names on which the snapshot are to be deleted you can use the dfm run cmd to run commands on the filer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;adai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 15:07:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-deletion-in-Protection-Manager/m-p/69923#M16305</guid>
      <dc:creator>adaikkap</dc:creator>
      <dc:date>2012-01-09T15:07:24Z</dc:date>
    </item>
  </channel>
</rss>

