Clear the apt package cache: This removes downloaded package files that are no longer needed.
sudo apt clean
Remove unused packages: This command removes packages that were automatically installed to satisfy dependencies for other packages but are no longer needed.