So there was no warning on how destructive that command was?
This is exactly why LLMs can easily generate absolutely plausible looking outputs and without checking exactly what it is doing it can lead to costly problems.
Imagine all the mess the "vibe-coding" movement is about to create when they start to deploy their code into production without caring for robustness and the quality of their software, because an LLM spat out unchecked rubbish code.
This won't be the last time this happens.