slight tidy up of code for destroying asset version