How to migrate a Website but only with content from subdomain?

I have a very old project with an overloaded database and many plugins. I want to start from scratch with this project and am currently rebuilding it on a test domain, this time more cleanly. I'm afraid that when migrating to the main domain, the content from the main domain will be added and not replaced. How do you go about this? I bought WP VIVID and the support says “When a backup of the source site is restored on the target site, it will overwrite the existing WordPress files and database data on the target site with the corresponding ones from the source site. However, any files and database data that are present in the target site but not in the source site will be retained. Additionally, any files and database data from the source site that are not found in the target site will be added to the target site during the restoration process.” It's not what I want. I just want the content from the subdomain. Should i start a fresh wordpress installation or choose another plugin?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer