Fixes to retrain ; added delete