question about reinstalling wordpress

Hi,
Does the reinstall wordpress option that is in the dashboard automatically wipe all the plugins and themes or does it keep them all and just reinstall wordpress itself?