Removal of cyanides by electroxidation