---

Linux: Bash Delete All Files In Directory Except Few

I’m a new Linux system user. I need to cleanup in a download directory i.e. delete all files from ~/Downloads/ folders except the following types: *.iso – All iso images files. *.zip – All zip files. How do I delete all file except some in bash shell on a Linux, OS X or Unix-like systems?