dnf-clean
Perform cleanup of temporary files kept for Red Hat-based repositories. tldr-pages
On Linux
Linux
Remove cache files generated from the repository metadata
dnf clean dbcacheIdentifyMark the repository metadata as expired
dnf clean expire-cacheIdentifyRemove repository metadata
dnf clean metadataIdentifyRemove any cached packages from the system
dnf clean packagesIdentifyClean up all DNF repository specific metadata and cached files (all of the above)
dnf clean allIdentify