Skip to main content

Remove a Hook manually

Comments

3 comments

  • cPanelMichael
    Hello @jimlongo, Here's the command you'd use: /usr/local/cpanel/bin/manage_hooks delete script /usr/local/cpanel/whostmgr/docroot/cgi/MyApp/Model/Hook/hooks.php --manual --category Whostmgr --event 'Accounts::change_package' --stage post
    Let me know if that helps. Thank you.
    0
  • jimlongo
    Thanks Michael, but I still get the same result. No matching hooks found
    0
  • cPanelMichael
    Hello @jimlongo, It looks like the command in the hook you are attempting to delete uses a flag, so you'd need to use a command like this to delete it: /usr/local/cpanel/bin/manage_hooks delete script "/usr/local/cpanel/whostmgr/docroot/cgi/MyApp/Model/Hook/hooks.php --changePackage" --manual --category Whostmgr --event 'Accounts::change_package' --stage post
    Thank you.
    0

Please sign in to leave a comment.