move delete action to top so it fixes messed up hosts file