Delete But Don't Copy

Ryan Kather
Thu, 29 Sep 2005 13:29:57 -0000

Is it possible to use RSYNC to only delete files that exist at the destination,
but not the source.  I would like RSYNC to remove files that exist at the
destination but do not exist at the source WITHOUT copying or creating any
additional files.

If RYSNC can't do this, does someone know a nice way?  Perhaps, find
<regex> > listing.txt && find <destinationregex> >
destination.txt && diff listing.txt destination.txt | rm the
differences?  (seems kind of ugly to me though).