Impact of species disappearance on ecosystem dynamics