.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "DNF5-CLEAN" "8" "Apr 18, 2025" "" "dnf5" .SH NAME dnf5-clean \- Clean Command .SH SYNOPSIS .sp \fBdnf5 clean [options] ...\fP .SH DESCRIPTION .sp The \fBclean\fP command in \fBDNF5\fP is used to delete temporarily kept repository metadata or marking the cache expired. .sp Arguments in \fBcache_types\fP specify which types of the cached data to cleanup: .INDENT 0.0 .TP .B \fIall\fP .nf Delete all temporary repository data from the system. .fi .sp .TP .B \fIpackages\fP .nf Delete any cached packages. .fi .sp .TP .B \fImetadata\fP .nf Delete repository metadata. This will delete the files which \fBDNF5\fP uses to determine the remote availability of packages. Using this option will make \fBDNF5\fP download all the metadata the next time it is run. .fi .sp .TP .B \fIdbcache\fP .nf Delete cache files generated from the repository metadata. This forces \fBDNF5\fP to regenerate the cache files the next time it is run. .fi .sp .TP .B \fIexpire\-cache\fP .nf Mark the repository metadata expired. This forces \fBDNF5\fP to check the validity of the cache the next time it is run. .fi .sp .UNINDENT .SH EXAMPLES .INDENT 0.0 .TP .B \fBdnf5 clean all\fP .nf Cleanup all repository cached data. .fi .sp .TP .B \fBdnf5 clean packages dbcache\fP .nf Cleanup all cached packages and dbcache metadata. .fi .sp .UNINDENT .SH AUTHOR See AUTHORS.md in dnf5 source distribution. .SH COPYRIGHT Contributors to the dnf5 project. .\" Generated by docutils manpage writer. .