There is no option to disable a Company. I wish to hide unnecessary companies which I don’t need now. Please help.
Create a custom check box in the company, name it “Disabled”, then in the list view filter out companies that have this check box checked.
If you want them to be filtered out in all company link fields, then you need to override the link query in hooks, to set a filter for “disabled” = 0.
You can achieve this by using permissions without any customizations. Just go to the users you wish to limit the companies they can see and assign permissions to only the company or companies you wish them to see and the others will be hidden from them.
Using customizations would require a lot of work as it would require you to set filter to every single doctype where company is required. So the quickest and easiest method is to just use user permissions to limit the companies the users can see and access as this does not require any customisation.