<?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 Re: Deletion of Snapshots by pattern using Netapp Powershell ToolKit in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Deletion-of-Snapshots-by-pattern-using-Netapp-Powershell-ToolKit/m-p/72486#M3586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&amp;nbsp; That did the trick and it's quicker than any other means of deleting snaps.&amp;nbsp; Only thing is the command does not echo what it is doing so you really need to be careful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-Ncvserver nac-rwc01-db01 |get-ncvol n01_cancdwd |get-ncsnapshot |? {$_.name -like "*hotdb*"} |remove-ncsnapshot -confirm:$False&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2014 22:46:41 GMT</pubDate>
    <dc:creator>andrew_stack</dc:creator>
    <dc:date>2014-07-23T22:46:41Z</dc:date>
    <item>
      <title>Deletion of Snapshots by pattern using Netapp Powershell ToolKit</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Deletion-of-Snapshots-by-pattern-using-Netapp-Powershell-ToolKit/m-p/72476#M3584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to delete using powershell particular snapshots that have a common naming convention 'hotdb'.&amp;nbsp; I wish to avoid being asked if I'm sure and to basically delete the particular snapshots across many volumes en masse.&amp;nbsp; Here is what I tried on one particular volume and it did not work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;PS C:\Users\stacka1&amp;gt; Get-Ncvserver nac-rwc01-db01 |get-ncvol n01_cancdwd |get-ncsnapshot |select-string -pattern "hotdb"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;cancdwd_1_20140603223105_hotdb&lt;/P&gt;&lt;P&gt;cancdwd_1_20140604223057_hotdb&lt;/P&gt;&lt;P&gt;cancdwd_1_20140605223102_hotdb&lt;/P&gt;&lt;P&gt;cancdwd_1_20140606223058_hotdb&lt;/P&gt;&lt;P&gt;cancdwd_1_20140607223036_hotdb&lt;/P&gt;&lt;P&gt;cancdwd_1_20140608223036_hotdb&lt;/P&gt;&lt;P&gt;cancdwd_1_20140609223046_hotdb&lt;/P&gt;&lt;P&gt;cancdwd_1_20140610223057_hotdb&lt;/P&gt;&lt;P&gt;cancdwd_1_20140611223100_hotdb&lt;/P&gt;&lt;P&gt;cancdwd_1_20140612223100_hotdb&lt;/P&gt;&lt;P&gt;cancdwd_1_20140613223059_hotdb&lt;/P&gt;&lt;P&gt;cancdwd_1_20140614223039_hotdb&lt;/P&gt;&lt;P&gt;cancdwd_1_20140615223038_hotdb&lt;/P&gt;&lt;P&gt;cancdwd_1_20140616223056_hotdb&lt;/P&gt;&lt;P&gt;cancdwd_1_20140617223102_hotdb&lt;/P&gt;&lt;P&gt;cancdwd_1_20140618223049_hotdb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;PS C:\Users\stacka1&amp;gt; Get-Ncvserver nac-rwc01-db01 |get-ncvol n01_cancdwd |get-ncsnapshot |select-string -pattern "hotdb" |remove-ncsnapshot&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Remove-NcSnapshot : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any o&lt;/P&gt;&lt;P&gt;f the parameters that take pipeline input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate any help in advance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:31:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Deletion-of-Snapshots-by-pattern-using-Netapp-Powershell-ToolKit/m-p/72476#M3584</guid>
      <dc:creator>andrew_stack</dc:creator>
      <dc:date>2025-06-05T05:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Deletion of Snapshots by pattern using Netapp Powershell ToolKit</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Deletion-of-Snapshots-by-pattern-using-Netapp-Powershell-ToolKit/m-p/72481#M3585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wouldn't use pattern in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use where-object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, something like after your getting snapshot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;| ? {$_.name -like "*hotdb*"} | remove-ncsnapshot -confirm:$False &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-confirm:$false will not prompt you.. Make sure you test the command first with -whatif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 20:30:46 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Deletion-of-Snapshots-by-pattern-using-Netapp-Powershell-ToolKit/m-p/72481#M3585</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2014-07-23T20:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Deletion of Snapshots by pattern using Netapp Powershell ToolKit</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Deletion-of-Snapshots-by-pattern-using-Netapp-Powershell-ToolKit/m-p/72486#M3586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&amp;nbsp; That did the trick and it's quicker than any other means of deleting snaps.&amp;nbsp; Only thing is the command does not echo what it is doing so you really need to be careful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-Ncvserver nac-rwc01-db01 |get-ncvol n01_cancdwd |get-ncsnapshot |? {$_.name -like "*hotdb*"} |remove-ncsnapshot -confirm:$False&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 22:46:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Deletion-of-Snapshots-by-pattern-using-Netapp-Powershell-ToolKit/m-p/72486#M3586</guid>
      <dc:creator>andrew_stack</dc:creator>
      <dc:date>2014-07-23T22:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Deletion of Snapshots by pattern using Netapp Powershell ToolKit</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Deletion-of-Snapshots-by-pattern-using-Netapp-Powershell-ToolKit/m-p/72491#M3587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, there are two schools of thought.. You can do it this way, or feed the food into an array&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-Ncvserver nac-rwc01-db01 |get-ncvol n01_cancdwd |get-ncsnapshot |? {$_.name -like "*hotdb*"} | % {&lt;/P&gt;&lt;P&gt;Write-host "Deleting Snapshot: " $_.name&lt;/P&gt;&lt;P&gt;remove-ncsnapshot $_.name -confirm:$False&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 11:31:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Deletion-of-Snapshots-by-pattern-using-Netapp-Powershell-ToolKit/m-p/72491#M3587</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2014-07-24T11:31:57Z</dc:date>
    </item>
  </channel>
</rss>

