Skip to content

Bugfix: Uninstall-PSResource should delete subdirectories without Access Denied error on OneDrive #1860

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anamnavi
Copy link
Member

@anamnavi anamnavi commented Aug 22, 2025

Currently, when uninstalling a module that was installed to a OneDrive module path, it deletes the module files successfully but not the subdirectories and an error is thrown. The subdirectories need to also have their file attribute set to FileAttributes.Normal to allow for deletion.

Tested manually on PS7.

PR Summary

PR Context

Resolves #1793

PR Checklist

…ithout access denied error and add error handling
@anamnavi
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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 this pull request may close these issues.

Uinstall-PSResource on OneDrive Error: Access to the path is denied
1 participant