Files still remain in the folder
Folder delete blocked because the folder still contains files (filesRemaining).
Why this happens
Safety rule: move or trash contents first. Nested empty subfolders may still need clearing depending on product rules.
Diagnose and fix
1. Open the folder; move or trash remaining files.
2. Retry delete folder.
3. See Could not move to trash if clearing fails.
4. See Folders.