The NetApp Community is moving to a new platform and is in Read-Only mode. Click to learn more.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

Remove snapshot automatic

edriel
4,953 Views

Hello All,

I'm building scripts for administrative purposes on a NetApp. One of the parts is removing snapshots from the system. When I run the following command the powershell scripts comes with a confirmation popup: remove-nasnapshot volume snapshot.

Is it possible to skip the confirmation and directly remove the snapshot after running the script?

I'm using Powershell Toolkit version 1.2.

Thanks for your help.

Regards,

Eelco

1 ACCEPTED SOLUTION

egrigson1
4,812 Views

You can use the -Confirm parameter like so;

Remove-NaSnapshot <snapname> -Confirm:$false

Regards,

Ed.

View solution in original post

1 REPLY 1

egrigson1
4,813 Views

You can use the -Confirm parameter like so;

Remove-NaSnapshot <snapname> -Confirm:$false

Regards,

Ed.

Public