Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Remove Zero Trust Assessment packages and data when you no longer need them. Keep cleanup scoped to the assessment resources you intend to retire, without removing shared modules or access used by other tools. Before cleanup, identify the affected packages and outputs, and review your retention requirements.
Prerequisites
- Identification of the assessment packages, output directories, and manually created diagnostic packages you intend to remove.
- Your organization's retention requirements for reports, exports, and logs.
Remove assessment packages
Close assessment sessions before removing the packages they use.
Close the PowerShell sessions running the assessment.
Remove installed assessment versions:
Uninstall-PSResource ZeroTrustAssessment -Version '*'If the legacy
ZeroTrustAssessmentv2package is installed, remove it separately withUninstall-PSResource ZeroTrustAssessmentv2 -Version '*'.Review the isolated dependency cache separately from the package. Don't remove it while any assessment session is using it.
For a routine stable package update instead of removal, see Install the PowerShell modules.
Clean up resources
Package removal and data/access cleanup are separate tasks. Review each location before deleting anything.
- Delete only the assessment output directories and manually created diagnostic packages you intend to remove. Reports and exports can contain sensitive tenant information.
- Review the extended PSFramework log location under your retention policy. Those logs are outside the assessment output directory and can include other PSFramework-using tools.
- If retiring a dedicated app registration, review and remove its grants and resource-role assignments before deleting it. Don't delete a shared Microsoft Graph PowerShell application or revoke shared consent without assessing the impact on other tools.