So ContentView::RemoveVersion does that. It won't delete a version that has environments.

For this command, I delete environments for the version but it still checks for associated models like systems, etc.