In the 2nd case (where other environments are using that version),  wouldn't we want to delete the repos for that environment & version combination?   As other environments would have their own repos generated, wouldn't they?