implemented deletion of versions