Where is the code for initializing or registering the workspaces tab , as in if I want to (un)register a tab, where should I look?

I wanted to remove the workspaces from the source itself, I want to hide them, I have been searching the code from a long time but I still cant get it, I tried searching for the workspace names(i.e. “Modeling”,“Sculpting” etc.),but I cant find a file where I can comment out the part where the workspace tab becomes visible.
Please Help.
Version 2.8

If you just want to hide the tabs, remove layout.template_ID_tabs from space_topbar.py.

If you want to actually edit or remove the workspaces, they are in release/datafiles/startup.blend.

1 Like

Thanks man , I appreciate your help. I got it.