Which files are you referring to? As far as I know, the only files left behind by an update would be old docker image tags which can be removed by docker image prune
however they should take up very little space as the base images are usually unchanged between releases.