Find all files (not directories) that are two levels deep in the current directory, that do not have a file name ending in ".jpg" and delete them.
find . -mindepth 2 -type f ! -iname '*.jpg' -exec rm {} \;