Empty folders on iCloud not visible on iCloud.com and cannot be deleted
I have created a Smartfolder to identify empty folders which I would like to delete. Using the search criteria (Kind is 'Folder' PLUS Number of Items < 1 PLUS Name Matches 'Documents'), Finder lists 71 items whose Path commences with 'iCloud' (as shown in the Path Bar). These items are all empty, as expected. However, when I attempt to move one or more of these to the Bin, they disappear momentarily, then they re-appear again. I can't delete them. My iCloud Drive is actually empty, and this is consistent with looking at iCloud using both Finder on the Mac, and iCloud.com. So, I have 2 questions: (1) how does a Smartfolder find folders when Finder and iCloud.com cannot, AND (2) how can I delete these 'ghost' folders. I recognise the 2 questions are related. My environment is MacBook 2024 (M4 chip), 48GB RAM, OS 15.1.1.
MacBook Pro 16″, macOS 15.1