delete all the legacy