Then old folder must be deleted if upload to new?

If I upload my updated web site to a folder2/ new folder (and point my domain to this new),… then old folder1/ must be deleted? for what reasons, search engines or…

If you point the domain to the new folder then you don’t have to delete the old folder.
If the folder name is part of the URL (e.g. [noparse]http://example.com/folder1[/noparse] becomes [noparse]http://example.com/folder2[/noparse]) then you do not need to delete folder1, but better would be to redirect the users requestion /folder1 to /folder2 (via a HTTP 301 redirect).

actually meant… if primary domain is www.primary.com and a secondary domain www.sec.com point to (hosted to) http://primary.com/folder1 and, after a while becomes http://primary.com/folder2, then the folder1/ in primary needed get deleted???

I don’t understand the question. Sorry.

when you write in browser www.sec.com go to http://primary.com/folder1/index.html but seems in browser like www.sec.com/index.html

basically folder1 be in http://primary.com/folder1 4GH (Genaration Hosting) environment not dedicated hosting

hosted domain sec.com to a folder in primary.com server after point it the sec.com (host it) in another folder, old folder must get deleted? I want keep for reference…

No you don’t need to delete it. You may want to however tell bots that [noparse]http://primary.com/folder1[/noparse] and [noparse]http://primary.com/folder2[/noparse] should not be indexed, by creating a robots.txt on [noparse]http://primary.com/[/noparse]


User-Agent: *
Disallow: /folder1
Disallow: /folder2

That way the folders won’t show up in the search engines while the secondary domain will, which is probably what you want.