Reinstall Wordpress

Is it safe to reinstall Wordpress and not lose any of the pages, posts, etc i.e preserve the database? I want clean my home directory, reinstall Wordpress and just point my new WP to existing DB so that the site contents are restored. Is there anything stored outside the WP DB that I stand to lose?