{"id":18344,"date":"2026-09-29T19:52:34","date_gmt":"2026-09-29T16:52:34","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/cpanel-home-directory-folders\/"},"modified":"2026-11-22T13:55:31","modified_gmt":"2026-11-22T10:55:31","password":"","slug":"cpanel-home-directory-folders","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/cpanel-home-directory-folders\/","title":{"rendered":"cPanel Folders Explained: public_html, mail, etc, logs and What Is Safe to Delete"},"content":{"rendered":"<div class=\"hkb\" dir=\"ltr\">\n<div class=\"hkb-tldr\"><b>Quick reference<\/b>Your website lives only in <b>public_html<\/b>, and <b>www<\/b> is a shortcut to it. Email is in <b>mail<\/b>, its settings in <b>etc<\/b> and certificates in <b>ssl<\/b>. Never delete those; old content in <b>tmp<\/b> and <b>logs<\/b> can be cleaned.<\/div>\n<div class=\"hy-vid\"><div style=\"width: 1280px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-18344-1\" width=\"1280\" height=\"720\" poster=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-cpanel-folders-en.jpg\" preload=\"none\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-cpanel-folders-en.mp4?_=1\" \/><a href=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-cpanel-folders-en.mp4\">https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-cpanel-folders-en.mp4<\/a><\/video><\/div><\/div>\n<p>The first time you open File Manager you see folders you never created. Each has a job, and deleting some of them stops your email or website. Keep this table as a reference before any clean-up.<\/p>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-fd-en-c-fm.webp\" alt=\"The cPanel home directory as shown in File Manager\" width=\"800\" height=\"451\" loading=\"lazy\" \/><\/figure>\n<h2>The visible folders<\/h2>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th>Folder<\/th>\n<th>What it does<\/th>\n<th>Delete it?<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>public_html<\/td>\n<td>Your main website files; anything here appears on your domain<\/td>\n<td>No. Delete unused files inside it only<\/td>\n<\/tr>\n<tr>\n<td>www<\/td>\n<td>A shortcut to public_html, not a second copy<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>mail<\/td>\n<td>Messages and folders for every mailbox<\/td>\n<td>No. Clean messages from Webmail or Email Disk Usage<\/td>\n<\/tr>\n<tr>\n<td>etc<\/td>\n<td>Email settings and encrypted email passwords<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>ssl<\/td>\n<td>SSL certificates and keys<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>logs<\/td>\n<td>Archived logs of visits to your site<\/td>\n<td>Old archives can go after you download them<\/td>\n<\/tr>\n<tr>\n<td>access-logs<\/td>\n<td>A shortcut to the current logs<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>tmp<\/td>\n<td>Temporary files and statistics reports<\/td>\n<td>Cleaning its contents is usually safe<\/td>\n<\/tr>\n<tr>\n<td>public_ftp<\/td>\n<td>The anonymous FTP folder, disabled on most hosting<\/td>\n<td>Leave it<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>The hidden folders<\/h2>\n<p>They appear after you turn on Show Hidden Files in File Manager settings. The common ones:<\/p>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th>Folder<\/th>\n<th>What it does<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>.trash<\/td>\n<td>The File Manager trash; it uses space until emptied<\/td>\n<\/tr>\n<tr>\n<td>.htpasswds<\/td>\n<td>Passwords for folders protected with <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/password-protect-directory-cpanel\/\">Directory Privacy<\/a><\/td>\n<\/tr>\n<tr>\n<td>.cpanel<\/td>\n<td>cPanel settings for your account<\/td>\n<\/tr>\n<tr>\n<td>.ssh<\/td>\n<td>Secure login keys, if enabled<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-fd-en-f-disk.webp\" alt=\"Folder sizes on the Disk Usage page\" width=\"800\" height=\"451\" loading=\"lazy\" \/><\/figure>\n<h2>What about addon domains?<\/h2>\n<p>When you add a domain, cPanel asks for a folder for its files. In recent versions it sits outside <code>public_html<\/code>, named after the domain, such as <code>shop.com<\/code>; older accounts may have it inside. Check the Document Root column on the <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/add-multiple-domains-one-hosting\/\">Domains<\/a> page.<\/p>\n<div class=\"hkb-note warn\">Found a folder inside <code>public_html<\/code> that you did not put there, with a random name or unfamiliar PHP files? It may be a sign of a hack. Do not delete it before contacting support so it can be examined.<\/div>\n<h2>Frequently asked questions<\/h2>\n<div class=\"hkb-faq\">\n<details>\n<summary>What is the difference between public_html and www?<\/summary>\n<p>None; www is a shortcut to public_html itself.<\/p>\n<\/details>\n<details>\n<summary>Should I delete public_ftp?<\/summary>\n<p>There is no need; leave it as it is.<\/p>\n<\/details>\n<details>\n<summary>Where are the files for an addon domain?<\/summary>\n<p>In the folder chosen as its document root, shown on the Domains page.<\/p>\n<\/details>\n<details>\n<summary>Does clearing tmp harm my site?<\/summary>\n<p>Do not delete the folder itself. Its temporary contents can usually be cleared safely.<\/p>\n<\/details>\n<\/div>\n<div class=\"hkb-rel\"><b>Related guides<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/how-to-use-file-manager-in-cpanel\/\">cPanel File Manager: Open It, Show Hidden Files, Change Permissions and More<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/cpanel-disk-usage\/\">Disk Usage in cPanel: See What Fills Your Hosting Space and How to Free It<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/add-multiple-domains-one-hosting\/\">How to Add Multiple Domains to One Hosting Account<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/password-protect-directory-cpanel\/\">Password Protect a Folder in cPanel (Directory Privacy): Steps, and What It Does and Does Not Protect<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/cpanel-files-databases-section\/\">The Files and Databases Sections in cPanel: File Manager, FTP and Creating a Database<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.hyyat.com\/en\/kb\/website-control-panel-cpanel\/\">All cPanel guides \u2192<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Quick referenceYour website lives only in public_html, and www is a shortcut to it. Email is in mail, its settings in etc and certificates in ssl. Never delete those; old content in tmp and logs can be cleaned. The first time you open File Manager you see folders you never created. Each has a job, [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":20797,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2749],"doc_tag":[],"class_list":["post-18344","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-website-control-panel-cpanel"],"year_month":"2026-11","word_count":461,"total_views":"7","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"cPanel Guides","term_url":"https:\/\/www.hyyat.com\/en\/kb\/website-control-panel-cpanel\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18344"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18344\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media\/20797"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18344"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18344"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}