This script provides options to delete logs and cache, and repopulate apt lists for Ubuntu and Debian systems.
Run the command below in the Proxmox VE Shell.
bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/misc/clean-lxcs.sh)"