Who knows?
Each Java release has its own set of bugs and security holes, and particular applications that you have installed in the machine might insist on using a particular version.
You can certainly delete them all except the latest and see what happens, and you'll quite possibly be OK, but it's also possible that some Java application or other will misbehave as you'll be trying to run them against a version that the programmer had never heard of.