How to Remove Default Shortcuts from Sidebar in Ubuntu (for Gnome Files)

The default shortcuts are controlled by the file below. Just edit it and comment out the lines corresponding to the undesired items.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo nano ~/.config/user-dirs.dirs
sudo nano ~/.config/user-dirs.dirs
sudo nano ~/.config/user-dirs.dirs

Then restart file manager:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
pkill nautilus && nohup nautilus 2> /dev/null &
pkill nautilus && nohup nautilus 2> /dev/null &
pkill nautilus && nohup nautilus 2> /dev/null &