How To Remove All Files And Directories In A Direc find . ! -name '<FILE_YOU_WANT_TO_KEEP>' -exec rm -rf {} + Previous Next