Microsoft Virtualization Discussions

Problem using Powershell to delete QTrees without prompting for confirmation

wschon

Hello, I am trying to use PowerShell to remove hundreds of qtrees, but it keeps prompting me to confirm for each qtree.  I am using "Remove-NaQtree -Force /vol/vol2/XXX".  I have tried using the "-Confirm", but cannot find much info on that switch, even in the full man page.

Any ideas would be greatly appreciated.

Thank you!

1 ACCEPTED SOLUTION

cknight

Try this:  Remove-NaQtree -Force /vol/vol2/XXX -Confirm:$false

View solution in original post

3 REPLIES 3

cknight

Try this:  Remove-NaQtree -Force /vol/vol2/XXX -Confirm:$false

View solution in original post

wschon

Hello Clinton,

Thank you soooo much!! That worked perfectly!!

Have a great day!

Thanks again!

Walter

wschon

Hello Clinton,

Thank you soooo much!!  That worked perfectly!!

Thanks again!

Walter

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public