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.

sudo nano ~/.config/user-dirs.dirs

Then restart file manager:

pkill nautilus && nohup nautilus 2> /dev/null &