Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Killacct and killdns

Discussion in 'cPanel Developers' started by georgeb, Oct 5, 2011.

  1. georgeb

    georgeb Well-Known Member

    Joined:
    May 23, 2010
    Messages:
    49
    Likes Received:
    1
    Trophy Points:
    58
    Location:
    Montreal, QC, Canada
    cPanel Access Level:
    Root Administrator
    Hi. I don't know if I am in the good forum. I am trying to use /scripts/killacct to automatically remove accounts, but it will not remove the DNS zone, after termination. (like in WHM is removing).

    I am using something like:

    Code:
    echo "y" | /scripts/killacct <user>
    Am I missing some arguments here ?.

    I know that postkillacct is using <user> and <killdns> but I didn't see anything how to.
    I read documentation but I didn't find anything related with this.

    Is another way to remove any DNS zone on server if there is no account related to that zone?

    Any help is appreciated.


    Regards,
    George B.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You should be able to use:

    Code:
    /scripts/killacct <user> --force --killdns
    This will kill the DNS zone and force the termination without the confirmation dialog. You can see these options if you run:

    Code:
    /scripts/killacct --help
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. georgeb

    georgeb Well-Known Member

    Joined:
    May 23, 2010
    Messages:
    49
    Likes Received:
    1
    Trophy Points:
    58
    Location:
    Montreal, QC, Canada
    cPanel Access Level:
    Root Administrator
    Thank you, so simple. You were right.

    George B.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...
Similar Threads - Killacct killdns
  1. maxo-tt
    Replies:
    1
    Views:
    134

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice