A shell script that clean expire packages in linux all thing tath you shuld do is to git clone this repo and add 751 chmod to the shellscript then run it whit the root user thats it :)
this shell is automaitcly clear last packages that store in snap directory i hope you enjoy that
Installing this code is so easy.
To install this code, you had to run this command.
sudo install clear-snap /usr/bin/clear-snapAfter installing this code you can use clear-snap in any path. this script will be run and remove unneeded files in the snap folder