View version and content view deletion changes

Also adding in support for how the UI removes versions/environments.