I'm trying to remove unwanted tabs in the left-hand toolshelf, such as "Grease Pencil" and others I never use. I saw an answer here from 2014 that suggested you edit the "space_view3d_toolbar.py" file in C:\Program Files\Blender Foundation\Blender\2.xx\scripts\startup\bl_ui, and comment out the class(es) that pertain to the tab you want to remove using """ at the start and end of the class.
However, I tried that for the Physics and Relations tabs, and it also removes a bunch of other tabs as well as the top menu. Also, this file doesn't seem to include the "Grease Pencil" or "Layers" tab info. I've done significant C# programming, so I doubt I messed up the commenting...
I'm wondering if something has changed in recent years. Is there a different file, or maybe I'm missing an easier tweak or add-on somewhere?