getWebhooks() as $webhook) { $webhook->delete($apiContext); } } catch (Exception $ex) { ResultPrinter::printError("Deleted all Webhooks", "WebhookList", null, null, $ex); exit(1); } ResultPrinter::printResult("Delete all Webhook, as it may have exceed the maximum count.", "WebhookList", null, null, null); return $output;