Method
Parameters
The unique identifier of the webhook to delete
Response
Always
"webhook"The unique identifier of the deleted webhook
Whether the webhook was successfully deleted
Powered by Mintlify
Auto-generate your docs
Remove a webhook by ID.
func (s *WebhooksSvcImpl) Remove(webhookId string) (*DeleteWebhookResponse, error)
func (s *WebhooksSvcImpl) RemoveWithContext(ctx context.Context, webhookId string) (*DeleteWebhookResponse, error)
"webhook"client := resend.NewClient("re_123456789")
response, err := client.Webhooks.Remove("wh_abc123")
if err != nil {
panic(err)
}
if response.Deleted {
fmt.Println("Webhook deleted successfully")
}