| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 | .\" 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 "BORG-DELETE" "1" "2025-08-02" "" "borg backup tool".SH NAMEborg-delete \- Delete archives.SH SYNOPSIS.spborg [common options] delete [options] [NAME].SH DESCRIPTION.spThis command soft\-deletes archives from the repository..spImportant:.INDENT 0.0.IP \(bu 2The delete command will only mark archives for deletion (\(dqsoft\-deletion\(dq),repository disk space is \fBnot\fP freed until you run \fBborg compact\fP\&..IP \(bu 2You can use \fBborg undelete\fP to undelete archives, but only untilyou run \fBborg compact\fP\&..UNINDENT.spWhen in doubt, use \fB\-\-dry\-run \-\-list\fP to see what would be deleted..spYou can delete multiple archives by specifying a matching pattern,using the \fB\-\-match\-archives PATTERN\fP option (for more info on these patterns,see \fIborg_patterns\fP)..SH OPTIONS.spSee \fIborg\-common(1)\fP for common options of Borg commands..SS arguments.INDENT 0.0.TP.B NAMEspecify the archive name.UNINDENT.SS options.INDENT 0.0.TP.B  \-n\fP,\fB  \-\-dry\-rundo not change repository.TP.B  \-\-listoutput verbose list of archives.UNINDENT.SS Archive filters.INDENT 0.0.TP.BI \-a \ PATTERN\fR,\fB \ \-\-match\-archives \ PATTERNonly consider archives matching all patterns. see \(dqborg help match\-archives\(dq..TP.BI \-\-sort\-by \ KEYSComma\-separated list of sorting keys; valid keys are: timestamp, archive, name, id, tags, host, user; default is: timestamp.TP.BI \-\-first \ Nconsider first N archives after other filters were applied.TP.BI \-\-last \ Nconsider last N archives after other filters were applied.TP.BI \-\-oldest \ TIMESPANconsider archives between the oldest archive\(aqs timestamp and (oldest + TIMESPAN), e.g. 7d or 12m..TP.BI \-\-newest \ TIMESPANconsider archives between the newest archive\(aqs timestamp and (newest \- TIMESPAN), e.g. 7d or 12m..TP.BI \-\-older \ TIMESPANconsider archives older than (now \- TIMESPAN), e.g. 7d or 12m..TP.BI \-\-newer \ TIMESPANconsider archives newer than (now \- TIMESPAN), e.g. 7d or 12m..UNINDENT.SH EXAMPLES.INDENT 0.0.INDENT 3.5.sp.EX# delete all backup archives named \(dqkenny\-files\(dq:$ borg delete \-a kenny\-files# actually free disk space:$ borg compact# delete a specific backup archive using its unique archive ID prefix$ borg delete aid:d34db33f# delete all archives whose names begin with the machine\(aqs hostname followed by \(dq\-\(dq$ borg delete \-a \(aqsh:{hostname}\-*\(aq# delete all archives whose names contain \(dq\-2012\-\(dq$ borg delete \-a \(aqsh:*\-2012\-*\(aq# see what would be deleted if delete was run without \-\-dry\-run$ borg delete \-\-list \-\-dry\-run \-a \(aqsh:*\-May\-*\(aq.EE.UNINDENT.UNINDENT.SH SEE ALSO.sp\fIborg\-common(1)\fP, \fIborg\-compact(1)\fP, \fIborg\-repo\-delete(1)\fP.SH AUTHORThe Borg Collective.\" Generated by docutils manpage writer..
 |