Hi Hitesh,
It is very rare situation that happens in real time. you first need to delete all the transactional data if it is there with transaction OBR1 then use OBR2 for deleting all master data that related company code. Remove assignments with controlling and asset accounting. Then directly delete company code from the config. and check in table T001.
Regards,
Prasad