Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove-DcnClone: Remove-Item can still prompt with with Confirm:$false #199

Closed
3 of 4 tasks
lowlydba opened this issue May 6, 2022 · 0 comments · Fixed by #200
Closed
3 of 4 tasks

Remove-DcnClone: Remove-Item can still prompt with with Confirm:$false #199

lowlydba opened this issue May 6, 2022 · 0 comments · Fixed by #200

Comments

@lowlydba
Copy link
Contributor

lowlydba commented May 6, 2022

Before submitting the bug

  • Ensure you are able to reproduce it on the latest released version (we release often)
  • Verified this bug is not already reported in an issue
  • Verified errors are not related to permissions
  • Can reproduce in a clean PowerShell session (clean = powershell -NoProfile)

Describe the bug
Depending on which files/folders exist, running Remove-DcnClone -Confirm:$false still prompts the user. This breaks usage in noninteractive modes.

To Reproduce
I didn't observe how/what made there be other files/dirs to trigger this.

Remove-DcnClone -database MyClone -Confirm:$false

Confirm
The item at C:\clone\MyClone has children and the Recurse parameter was not specified. If you continue, all children will be removed with the item. Are you sure you want to continue?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): 

Expected behavior
No prompt is issued with Confirm:$false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant