Ubuntu 20.04: Hide Mounted Device Icons in Left Dock Panel

Since Ubuntu 19.10, the default Gnome desktop shows mounted device icons on the left dock panel.

When you plug in an USB flash drive, or browse over another disk partition, you’ll see matched device icons showing on the dock panel. For those don’t like the feature, here’s how to remove (hide) these icons.

Single command to remove mounted device icons from left dock panel:

Without installing anything, you can run a single command to do the job.

Simply open terminal by pressing Ctrl+Alt+T on keyboard. When it opens, run command: