You can remove the WHT types at company code in th following path.
Go to SPRO
-Financial Accounting -Financial Accounting Global Settings Withholding Tax-- Extended Withholding Tax --
Assign Withholding Tax Types to Company Code
Delsect the EWHT CheckBox also in th following path.
-Financial Accounting -Financial Accounting Global Settings -Withholding Tax---- Extended Withholding Tax-- --
Activate the Extended Withholding Tax
Please revert in case of any confusion.
If you want to deactivate it at the company code, then it is a tick in SPRO.
But I guess you mean to say that you want to deactivate some of the Tax codes no longer used in the system..
For that, there is no direct solution in SAP, you can remove the GL Account assignment to that tax code to ensure that at least no posting is made in that Tax Code, Secondly, you can change the description of the tax code as "DO NOT USE", so that anybody assigning these Tax code in the Vendor Master would realize that these are no to be used..
But yes, you can limit the use of Tax Type in the Node, Assign Witholding tax Types to Company code, where you can enter the To date as the end date of use of that Tax Type.