You would first need to delete the Co code assignment to the CoD. If there are asset master in the co code, you can not remove the assignment and hence can not delete the CoD.
I think the only option you have to reset!! But read the documentation thoroughly before you try that
Thanks
Asheesh