retain is a command-line utility that removes all files except the ones specified in its argument list. Conceptually, it's the opposite of rm (or del on Windows).
retain [options] ...
to see the complete command line usage.
pip install retain
Brian M. Clapper, firstname.lastname@example.org
Copyright and License
Copyright © 2008-2016 Brian M. Clapper.
retain is released under a BSD License. Please see the accompanying License file.