The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Killacct and killdns

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

  1. georgeb

    georgeb Well-Known Member

    Joined:
    May 23, 2010
    Messages:
    48
    Likes Received:
    1
    Trophy Points:
    8
    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.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    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
     
  3. georgeb

    georgeb Well-Known Member

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

    George B.
     

Share This Page