How to Remove a Subdomain in cPanel? (Video)

 

If you no longer need a subdomain, you can remove it via cPanel. This process deletes the subdomain’s configuration and stops it from resolving to your website, but it does not automatically delete the associated files.

Follow these steps to remove a subdomain in cPanel:


Step 1: Log in to cPanel

  1. Open your browser and navigate to your cPanel login page (e.g., https://yourdomain.com:2083).
  2. Enter your username and password, then click Log in.

Step 2: Access the Subdomains Tool

  1. Scroll down to the Domains section in the cPanel dashboard.
  2. Click on Subdomains.

Step 3: Locate the Subdomain

  1. In the Modify a Subdomain section, you’ll see a list of all existing subdomains associated with your account.
  2. Locate the subdomain you want to remove.

Step 4: Remove the Subdomain

  1. Click the Remove button next to the subdomain.
  2. Confirm the deletion if prompted.
    • This action will remove the subdomain’s configuration from your hosting account but will not delete the associated files.

Step 5: Delete Subdomain Files (Optional)

  1. If you no longer need the files associated with the subdomain:
    • Go to the File Manager in cPanel.
    • Navigate to the subdomain's document root directory (e.g., /public_html/blog).
    • Delete the folder and its contents.
  2. Be careful to only delete files related to the subdomain to avoid impacting other parts of your website.

Step 6: Update DNS Records (If Applicable)

  1. If your domain’s DNS is managed externally, log in to your domain registrar’s dashboard.
  2. Remove any A Records or CNAME Records associated with the subdomain.
  3. Allow 24-48 hours for DNS changes to propagate globally.

Tips for Removing a Subdomain

  • Backup Files: If you think you may need the subdomain’s files in the future, create a backup before deletion.
  • Check Dependencies: Ensure no active services, links, or applications rely on the subdomain before removing it.
  • DNS Cleanup: Remove DNS records for the subdomain to prevent misconfigured or unnecessary DNS entries.

By following these steps, you can safely remove a subdomain in cPanel and clean up your hosting account.

  • 0 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

How to Park a Domain in cPanel? (Video)

  Parking a domain in cPanel allows you to associate multiple domains with the same website....

How to Remove Domain Alias or Parked Domain name in cPanel? (Video)

  Removing a domain alias or parked domain in cPanel is a straightforward process. If you no...

How to Create an Addon Domain in cPanel? (Video)

  An Addon Domain allows you to host multiple websites on the same hosting account....

How to Remove an Add-on Domain in cPanel? (Video)

  If you no longer need an Addon Domain hosted on your account, you can remove it...

How to Redirect an Addon Domain in cPanel? (Video)

  Redirecting an Addon Domain in cPanel allows you to forward visitors from that...