Ubuntu – How to remove the home directory and Trash icons from the desktop in Ubuntu 19.04

desktop-icons

To reiterate the question: how do I remove the home directory and Trash icons from the desktop in Ubuntu 19.04?

There are several similar questions on Ask Ubuntu, but none provided the answer:

The second, third, and fourth questions are the top three hits in Google for the search terms "Ubuntu remove icons from desktop", but I can't provide the correct answer for Ubuntu 19.04 on any of them because they specifically cite a different Ubuntu version number.

Best Answer

  • The simplest method is to execute these two commands in a terminal:

    gsettings set org.gnome.shell.extensions.desktop-icons show-home false
    gsettings set org.gnome.shell.extensions.desktop-icons show-trash false