I would like to delete the Home from master database. I can delete without any problem but I saw for example references in site configurations. Is there any other places where should I remove the references?
It is safe to delete the default Home item. I have done so on many projects.
The only place where you need to update the reference is the default site definition:
<site name="website" ... rootPath="/sitecore/content" startItem="/home" ... />
Some system sites, such as "shell" and "modules_website", also have references to the Home item. In most cases they won't be used, but it's still best to change them to point to an existing item.
You need to check the default site definition and your custom site definition nodes in the config file. It must not include /home path as start path and master as a database.
You don't need to care about modules_website as it is not using the Master database.
And regarding the Sitecore.UIUtil.GetHomeItem method, it won't create any issue. If it can't find the path /sitecore/content/Home it will return the Item till /sitecore/content.
I would like to answer my own question because I found out and tested the exact answer. Of course thank you for the answers. So here is the patch configuration what I used to remove all references to the default Home item from the default Sitecore configuration.
<sitecore> <settings> <setting name="DefaultItem"> <patch:attribute name="value">/</patch:attribute> </setting> </settings> <sites> <site name="shell"> <patch:attribute name="startItem">/</patch:attribute> <patch:attribute name="contentStartItem">/</patch:attribute> </site> <site name="modules_website"> <patch:attribute name="startItem">/</patch:attribute> </site> <site name="website"> <patch:attribute name="startItem">/</patch:attribute> </site> </sites> </sitecore>