code: 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;
      }
docs: Deletes webhooks in the shop tied to the app.
  
  @return array