PureMac icon indicating copy to clipboard operation
PureMac copied to clipboard

[Bug] "Couldn't clean everything" persists after v2.2.0 fix — FDA confirmed granted but files still fail to remove (MS Office package)

Open ghost opened this issue 6 months ago • 3 comments

Description

The fix introduced in v2.2.0 did not resolve the issue for all cases. While it may have fixed removal for some apps, the same "couldn't clean everything" error still appears when attempting to uninstall certain application bundles — specifically Microsoft Office.

Notably, the app's own UI shows "Full Disk Access granted" at the bottom of the sidebar, confirming that FDA is recognized. Despite this, removal still fails for 1 or more files.

This appears to be a different root cause than a simple FDA detection bug — the app detects FDA correctly but still cannot remove certain files.

Steps to Reproduce

  1. Install PureMac v2.2.0 (6)
  2. Grant Full Disk Access in System Settings → Privacy & Security
  3. Confirm bottom sidebar shows "Full Disk Access granted"
  4. Open Installed Apps → select Microsoft Office (or a large multi-component package)
  5. Click Remove / Clean
  6. PureMac shows: "Couldn't clean everything. 1 item couldn't be removed. Check the log for details."

Expected Behavior

All files of the selected application are fully removed without errors.

Actual Behavior

PureMac shows "Couldn't clean everything" for 1 item. FDA is confirmed as granted (visible in the UI). Clicking "Open System Settings" shows PureMac already toggled ON in Full Disk Access list.

Troubleshooting Already Attempted

  • [x] Re-toggled Full Disk Access permission off and on
  • [x] Fully quit and relaunched PureMac
  • [x] Rebooted the Mac
  • [x] Reset TCC database via sudo tccutil reset SystemPolicyAllFiles
  • [x] Updated to v2.2.0 (6) which was supposed to fix this issue

None of the above resolved the issue.

Environment

  • macOS version: 26.5 (Build 25F71)
  • PureMac version: 2.2.0 (6)
  • Mac model: Mac mini
  • Affected app being removed: Microsoft Office package

Screenshots

Image Image

Additional Notes

The log mentioned in the dialog ("Check the log for details") may contain useful information — please advise where to find it or add a way to export/view it directly from the UI.

ghost avatar May 16 '26 22:05 ghost

Similar issue continues #87

Image

darkbringer1 avatar May 17 '26 13:05 darkbringer1

Fixed on main by #103 (commit 6fe3f0f).

Your read on the symptom was right - FDA detection was working, but the removal still failed because Microsoft Office leaves files that require administrator authorization, not just Full Disk Access (package receipts under /var/db/receipts/com.microsoft.*, LaunchDaemons under /Library/LaunchDaemons/com.microsoft.*.plist, and parts of the bundle itself under /Applications/Microsoft *.app).

The fix routes those specific paths through the existing vetted administrator cleaner (paths are NUL-separated and consumed by xargs -0 rm -rf, allow-list-validated inside CleaningEngine before the privileged step runs). After this lands, removing Office should prompt once for admin credentials and complete cleanly without the 'Couldn't clean everything' message.

On the log: it currently goes through Logger.shared and writes to ~/Library/Containers/com.puremac.PureMac/Data/Library/Logs/ (subject to sandbox container layout). The UI hint to 'check the log for details' will be updated to either surface the log path or expose an in-app viewer in a follow-up.

Ship lands in the next release (v2.3.0).

momenbasel avatar May 23 '26 03:05 momenbasel

This persists on 2.3.0; also, I couldn't find the logs in the mentioned path.

After the update (using brew: momenbasel/tap/puremac 2.2.0 → 2.3.0), I was asked for the admin password, but it didn't help.

https://github.com/user-attachments/assets/1c5d8a8c-3d48-49b9-897f-045d8080138c

M2 Max on Tahoe 26.5

dragstor avatar May 23 '26 07:05 dragstor