Have you ever cleaned your package cache ? Every package you install and update gets stored on your machine until you eventually get out of disk space, so you can solve this by running:
sudo paccache -rvk2
It will delete every package in your cache, and keep the 2 most recent versions of each of them. Also you’ll need to install pacman-contrib to run this command. More details here
Thanks. I tried this trick and it worked. I restored space on my hard disk of my laptop by close to 2GB. Is this a periodic function? If I need help in the future regarding this subject I will let you all know.