Feedback Hub archive log files will not delete.

RobK-9466 0 Reputation points
2024-05-09T14:31:16.71+00:00

After uninstalling Feedback Hub via admin PowerShell, the archive log files (76.8 MB) will not delete, despite several attempts. I've even tried it with an admin PowerShell command suggested by AI:

$Files = ((Get-childitem -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsFeedbackHub_cw5n1h2txyewy\LocalState\DiagnosticLogs\Archive" -Recurse).VersionInfo).FileName Foreach ($file in $files) { {Remove-Item -Path $File -Force} }

The filename "Foreach" was flagged for having an "Unexpected token in expression or statement".

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,429 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2024-05-09T14:31:16.7266667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To delete the archive log files for Feedback Hub, you may need to stop the Authentication Agent service first. If that doesn't work, you can try using PowerShell to delete the files. Here's an example script that you can use:

    $Files = ((Get-childitem -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsFeedbackHub_cw5n1h2txyewy\LocalState\DiagnosticLogs\Archive" -Recurse).VersionInfo).FileName
    Foreach ($file in $files) {
    {Remove-Item -Path $File -Force}
    }
    

    This script will delete all files in the Feedback Hub archive log folder. If you want to keep some files, you can modify the script to only delete certain files.


    References:

    0 comments No comments