It is indeed preferable to delete the existing site before publishing the new one, in order to start with a clean slate. If you don’t do this, the old files (pages, images, scripts) will remain on the server, even if they’re no longer used or their URLs have changed, unnecessarily cluttering your server space. Additionally, if the old pages are still live, visitors might end up on them, especially if they are still indexed by search engines.
Also, remember to reindex your site with the new sitemap so that search engines properly account for your updates. To do this, log in to Google Search Console and submit your sitemap URL (exemple : yoursite.com/sitemap.xml).