Skip to main content

WHM API1 killpkg function doesn't work

Comments

5 comments

  • cPanelKenneth
    1. Which version of cPanel & WHM are you using? 2. Does the package exist on the server? 3. What is recorded in /usr/local/cpanel/logs/error_log when you call the killpkg call?
    0
  • Xaser83
    I have the exact same problem as described above. The query i'm using is: /json-api/killpkg?api.version=1&pkg=new2 The used version: WHM 11.50.0 (build 30) I have confirmed that the package is still present. The error log says: [2015-09-04 11:56:33 +0200] info [xml-api] There was an error when the system attempted to delete the package "": You must specify a package. [killpkg] version [1].
    0
  • JacobPerkins
    Hi, I've verified this and reported it in case CPANEL-1378. Thanks for the report!
    0
  • DavidN.
    We got this wrong in the documentation. The parameter name should be 'pkgname', not 'pkg'. Sorry for the inconvenience; we'll get that updated ASAP.
    0
  • Xaser83
    I tried 'pkgname' as option and it works flawless now. Thanks for the help.
    0

Please sign in to leave a comment.