I checked at myself at the test stand as removal of usb drive works
After disconnection of usb disk from the thin client
Console of the thin client:
ls /media/
Data_Treveler
After remove usb drive the directory for mount automatically was not removed...
We go on the server. We see the link "Data_Treveler" on a desktop and in / home/user/media/rm/Data_Treveler

We return to the console of the thin client
rm -rf /media/Data_Treveler
Now on the thin client there is no Data_Treveler directory
On the server in / home/user/media/rm/is empty as well as should be. But the link "Data_Treveler" on a desktop remained.

Why I show consideration for it?
If during one session the user used many different usb disks, then it will have many not working links on a desktop (garbage) and in / home/media/. It will mislead him...
--
С Уважением Строганов Роман