Use this plugin for that 🙂 very easy to use

It will make your wordpress website as new as before and remove all data.

https://wordpress.org/plugins/wordpress-database-reset/