{"id":50385,"date":"2026-11-20T05:24:08","date_gmt":"2026-11-20T05:24:08","guid":{"rendered":"https:\/\/kickhost.com\/guides\/how-to-delete-a-database-in-cpanel\/"},"modified":"2026-11-28T06:06:24","modified_gmt":"2026-11-28T06:06:24","slug":"how-to-delete-a-database-in-cpanel","status":"publish","type":"kickhost_tutorial","link":"https:\/\/kickhost.com\/en-ke\/guides\/how-to-delete-a-database-in-cpanel\/","title":{"rendered":"How to Delete a Database in cPanel"},"content":{"rendered":"<p>Removing a database you no longer use keeps your account tidy and saves space. Deleting is permanent, so check carefully that nothing on your website still depends on it.<\/p>\n<p><strong>1.<\/strong> Log in to your cPanel account.<\/p>\n<p><strong>2.<\/strong> In the <strong>Databases<\/strong> section, click on <strong>MySQL Databases<\/strong>.<br \/> <img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/mysql-databases-icon.gif\" alt=\"\" align=\"middle\" loading=\"lazy\"><\/p>\n<p><strong>3.<\/strong> Under <strong>Current Databases<\/strong>, you can see a list of all your databases. Locate the database you want to remove and click on <strong>Delete<\/strong>.<br \/><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/delete-db.gif\" alt=\"\" loading=\"lazy\"><\/p>\n<p><strong>4.<\/strong> Click on <strong>Delete Database<\/strong>.<br \/><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/db-remove-confirmation.gif\" alt=\"\" align=\"middle\" loading=\"lazy\"><\/p>\n<h2>Before you delete<\/h2>\n<p>Download a backup of the database first. If a website still uses the database, it will show an error such as &ldquo;Error establishing a database connection&rdquo; as soon as it is removed. Check your site&rsquo;s configuration file (wp-config.php for WordPress) to confirm which database it uses.<\/p>\n<h2>Database users stay behind<\/h2>\n<p>Deleting a database does not remove its users. If they are no longer needed, delete them from the same MySQL Databases page so no unused accounts remain.<\/p>\n<h2>Cannot undo this<\/h2>\n<p>Once deleted, a database can only come back from a backup. Keep your backup until you are sure the site works without it.<\/p>\n<h2>Frequently asked questions<\/h2>\n<p><strong>Can I recover a deleted database?<\/strong> Only from a backup. Download one before you delete.<\/p>\n<p><strong>Will deleting a database delete my website files?<\/strong> No. Only the database is removed. Files in public_html stay in place.<\/p>\n<p><strong>Should I delete the database user too?<\/strong> If nothing else uses it, yes. Unused users are an unnecessary risk.<\/p>\n<h2>Related guides<\/h2>\n<ul>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-create-a-database-in-cpanel\/\">Create a database in cPanel<\/a><\/li>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-create-a-database-username-in-cpanel\/\">Create a database username<\/a><\/li>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-add-a-user-to-a-database-and-grant-privileges\/\">Add a user to a database and grant privileges<\/a><\/li>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-delete-a-database-in-cpanel\/\">Delete a database in cPanel<\/a><\/li>\n<\/ul>\n<p>Need cPanel hosting in Kenya? <a href=\"https:\/\/kickhost.com\/en-ke\/web-hosting\/\">See KickHost hosting plans<\/a> or <a href=\"https:\/\/kickhost.com\/en-ke\/contact\/\">contact our team<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Delete a MySQL database in cPanel safely. Back up first, then follow clear steps for KickHost hosting customers in Kenya.<\/p>\n","protected":false},"featured_media":0,"template":"","class_list":["post-50385","kickhost_tutorial","type-kickhost_tutorial","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial"}],"about":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/types\/kickhost_tutorial"}],"version-history":[{"count":2,"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50385\/revisions"}],"predecessor-version":[{"id":53308,"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50385\/revisions\/53308"}],"wp:attachment":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/media?parent=50385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}