The ecosystem would get all messed up. For example, let's say there is a hawk, a snake, and a mouse. The hawks eat the snakes, and the snakes eat the mice. If the hawks were to go missing, there would be more snakes, thus causing less mice. All of the mice would eventually get eaten since the snakes can reproduce with so many of them. Once all of the mice are gone, the snakes would eventually die of starvation. Thus, if all the primary consumers in an ecosystem were removed there would eventually be an increase in secondary consumers, that would lead to a decrease in the producers/vegetarians. This eventually would lead to a decrease of secondary consumers/carnivores.
I hope this helped! I worked hard! <3
-YAND3R3