src/ShopifyApp/Services/WebhookManager.php
public function deleteWebhooks()
    {
        $shopWebhooks = $this->shopWebhooks();

        $deleted = [];
        foreach ($shopWebhooks as $webhook) {
            // Its a webhook in the config, delete it
            $this->api->rest('DELETE', "/admin/webhooks/{$webhook->id}.json");
            $deleted[] = $webhook;
        }

        // Reset
        $this->shopWebhooks = null;

        return $deleted;
    }
public function deleteWebhooks()
    {
        $shopWebhooks = $this->shopWebhooks();

        $deleted = [];
        foreach ($shopWebhooks as $webhook) {
            // Its a webhook in the config, delete it
            $this->api->rest('DELETE', "/admin/webhooks/{$webhook->id}.json");
            $deleted[] = $webhook;
        }

        // Reset
        $this->shopWebhooks = null;

        return $deleted;
    }
public function deleteWebhooks ( ) { $ shopWebhooks = $ this -> shopWebhooks ( ) ; $ deleted = [ ] ; foreach ( $ shopWebhooks as $ webhook ) { // Its a webhook in the config, delete it $ this -> api -> rest ( 'DELETE' , "/admin/webhooks/{$webhook->id}.json" ) ; $ deleted [ ] = $ webhook ; } // Reset $ this -> shopWebhooks = null ; return $ deleted ; }
Deletes webhooks in the shop tied to the app.

@return array
Deletes webhooks in the shop tied to the app .