12 august 2016 Delete directories except files Test find . -d -type d Delete find . -d -type d -exec rm -rf '{}' \;