On a USB drive, if I move files to trash, the trash icon changes from empty to full, as it should.
However, if I then remove the USB drive (without emptying the trash), the trash icon still shows trash in it. The only way I could get the icon back to empty is to reconnect the drive and then empty the trash.
Normally this is OK but on one case the USB drive with trash files was formatted, so now there is nothing left to empty. The trash icon still is full one, even though Trash folder is empty. What I see:
Is this icon display related to removable drives normal? It seems counter-intuitive.
And now, how to remove the yellow bar/empty button, or where is it controlled?
When you delete files on an external storage media device, such as a USB drive, and then remove the drive without emptying the trash, the trash icon may show items still in the trash.
If you reformat that external drive, it will get a new UUID and, when you mount it again, it will appear to be a different drive. So the OS will not know that it is the same drive and will not be able to clear the trash icon.
Rebooting the system with the USB drive removed will probably clear the trash icon.
I do not know where this tracking information is stored in Ubuntu.