<?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 How to delete a snapshot without confirmation from Command Line? in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/How-to-delete-a-snapshot-without-confirmation-from-Command-Line/m-p/123540#M26474</link>
    <description>&lt;P&gt;Just not getting this.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I delete groups of snapshots without confirmation in Ontap v8.3&amp;nbsp;&amp;nbsp; ???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;partial script is:&lt;/P&gt;&lt;P&gt;ssh@filer snapshot delete -vserver xxx -volume yyy -snapshot zzz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where ZZZ is a string feed list&lt;/P&gt;&lt;P&gt;and ZZZ keeps asking me for confirmation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2016 16:37:16 GMT</pubDate>
    <dc:creator>zimmerm</dc:creator>
    <dc:date>2016-09-23T16:37:16Z</dc:date>
    <item>
      <title>How to delete a snapshot without confirmation from Command Line?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/How-to-delete-a-snapshot-without-confirmation-from-Command-Line/m-p/123540#M26474</link>
      <description>&lt;P&gt;Just not getting this.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I delete groups of snapshots without confirmation in Ontap v8.3&amp;nbsp;&amp;nbsp; ???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;partial script is:&lt;/P&gt;&lt;P&gt;ssh@filer snapshot delete -vserver xxx -volume yyy -snapshot zzz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where ZZZ is a string feed list&lt;/P&gt;&lt;P&gt;and ZZZ keeps asking me for confirmation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 16:37:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/How-to-delete-a-snapshot-without-confirmation-from-Command-Line/m-p/123540#M26474</guid>
      <dc:creator>zimmerm</dc:creator>
      <dc:date>2016-09-23T16:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a snapshot without confirmation from Command Line?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/How-to-delete-a-snapshot-without-confirmation-from-Command-Line/m-p/123562#M26475</link>
      <description>&lt;P&gt;I'm not entirely sure if you need diag mode, but a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set diag and&amp;nbsp;then your command with -force true should work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"set diag; snapshot delete -vserver xxx -volume yyy -snapshot zzz &lt;STRONG&gt;-force true&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 01:03:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/How-to-delete-a-snapshot-without-confirmation-from-Command-Line/m-p/123562#M26475</guid>
      <dc:creator>michael_england</dc:creator>
      <dc:date>2016-09-26T01:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a snapshot without confirmation from Command Line?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/How-to-delete-a-snapshot-without-confirmation-from-Command-Line/m-p/123704#M26506</link>
      <description>You can set the confirmations to off and this will not prompt for any confirmation, you can do it by using the command set and press tab you will get an option for confirmation and you can turn it to off</description>
      <pubDate>Thu, 29 Sep 2016 14:18:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/How-to-delete-a-snapshot-without-confirmation-from-Command-Line/m-p/123704#M26506</guid>
      <dc:creator>Sandeep17it</dc:creator>
      <dc:date>2016-09-29T14:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a snapshot without confirmation from Command Line?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/How-to-delete-a-snapshot-without-confirmation-from-Command-Line/m-p/124726#M26826</link>
      <description>&lt;P&gt;How do you set the "-confirmations off" permanently for snapshot deletes....?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&amp;nbsp;&amp;nbsp; command set TAB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; works but only for that active ssh session&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;snap&lt;/P&gt;&lt;P&gt;snapshot&amp;gt;&lt;/P&gt;&lt;P&gt;snapshot&amp;gt;&amp;lt;CR&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Confirmation Messages:&amp;nbsp; on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;snapshot&amp;gt; set ?&lt;/P&gt;&lt;P&gt;snapshot&amp;gt; set -privilege admin -confirmation off&lt;/P&gt;&lt;P&gt;snapshot&amp;gt;&amp;lt;CR&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Confirmation Messages:&amp;nbsp; off&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this works as long as the SSH session is still open, when you logout and log back in, the -confirmation is set to "on" again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I'm running a script from Solaris and SSHing every hour to check for "current" snapshots that got created by an application, which under some key trigger I do not want,&lt;/P&gt;&lt;P&gt;then I want to delete that snapshot within the script, without the confirmation.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 19:53:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/How-to-delete-a-snapshot-without-confirmation-from-Command-Line/m-p/124726#M26826</guid>
      <dc:creator>zimmerm</dc:creator>
      <dc:date>2016-10-25T19:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a snapshot without confirmation from Command Line?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/How-to-delete-a-snapshot-without-confirmation-from-Command-Line/m-p/136997#M30197</link>
      <description>&lt;P&gt;It worked..Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First i turned off the confiramation using Admin mode in PRIV..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next Prepared a script and executed all. It eased my work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;snapshot show -vserver XXXX -volume&amp;nbsp;XXXX -snapshot * -create-time &amp;lt;365d -fields create-time,size -is-7-mode true&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Dec 2017 13:12:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/How-to-delete-a-snapshot-without-confirmation-from-Command-Line/m-p/136997#M30197</guid>
      <dc:creator>RaviChandra</dc:creator>
      <dc:date>2017-12-30T13:12:43Z</dc:date>
    </item>
  </channel>
</rss>

