Can't empty Trash on Mac because a file is in use? How to fix it
Find which app is holding a file in the Trash, unlock locked items, use Delete Immediately, and fix Trash on external drives. Tested on macOS 26 Tahoe.
2 tested guides, grouped by what is actually going on. Covers: Cannot delete, cannot copy, Trash, error codes.
Every step is done on a MacBook Pro 14" (M1 Pro, 16 GB) before it is published. The Mac, the macOS version and the date sit at the top of each guide.
macOS settings, Finder and Terminal come first. An app is mentioned only when it really solves the problem, and our own apps are labelled.
Each guide links to Apple Support or the tool maker's docs, so you can confirm the steps yourself.
Guides are dated. When a guide is six months old it is flagged for a re-test on the current macOS.