Method 1: Built-in Resource Monitor (No Extra Software)
- Press Win + R, type resmon, and press Enter.
- Click the CPU tab and expand the "Associated Handles" section.
- Type the name of the locked file or folder into the Search Handles box.
- Right-click the locking process and select End Process, then delete or move your file.
Method 2: Microsoft PowerToys File Locksmith
Install free Microsoft PowerToys from the Microsoft Store. Once enabled, right-click any locked file or folder and click "Unlock with File Locksmith" to see and close the exact app holding it open.