How to completely delete a sub-domain?

Discussion in 'Web Hosting' started by hammadfaisal007, Feb 25, 2012.

  1. #1
    Hi,
    I have a sub-domain
    http://forums.pcabout.com/
    Code (markup):
    I want to delete it completely (all files and database). What is the safest way to do that? I want to create another site instead of that? Should I hard delete all the files and database? Will it effect in any manner? Guys please help me reg this.
     
    hammadfaisal007, Feb 25, 2012 IP
  2. Derekk88

    Derekk88 Active Member

    Messages:
    104
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #2
    - Delete the directory (and all files in that directory) in the root of the domain where the files resided. e.g /home/usernm/public_html/forums/*
    - add Redirect 410 /forums/ in htaccess (this is error code for GONE, the resource no longer exists)
    - Remove the "sub-domain" from your hosting account
    - Remove the host record (A or Cname) from DNS zone.. if you have access to it)

    i wrote about removing an entire website here http://blog.corewebsolutions.com/hosting/how-to-remove-entire-website-from-the-internet/

    You can save your database my just leaving it in place. Save the config settings from your forum script so you can reapply them to the new install and same database.... if thats what you are doing.
    You can also just move the forum to a new location (sub-domain or root domain) and just change the paths in the config or settings file to the new location, then delete the old sub-domain and redirect all traffic to the new one e.g.
     Redirect 301 /forums/ http://new-loc.exampledomain.com/
    Code (markup):
     
    Last edited: Feb 25, 2012
    Derekk88, Feb 25, 2012 IP
  3. hammadfaisal007

    hammadfaisal007 Member

    Messages:
    140
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #3
    I just want to hard delete all the files and database. I don't want any content of that sub-domain. It was just for test. My host provider has limited a 2 sub domain, so I am deleting this sub-domain and creating a new blog. So hard deleting will be a issue or should I try the method which you have told above?
     
    hammadfaisal007, Feb 26, 2012 IP