Hi
You can use the T code OBR1 to reset the Transaction data Posted to a company code and Use T code OBR2 to delete the Master data such as Customer, vendors and GL account created in company code.
Please read the sap documentation properly before doing this,
so it will be easy to learn the cause and effect after doing this CXDL - Delete transaction data from ledger Transaction GCDE and simply choose your ledger
Please find the below link for your needful....
Regards
sudharsana Vamsi