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?