Skip to main content

Method

func (s *WebhooksSvcImpl) Remove(webhookId string) (*DeleteWebhookResponse, error)
func (s *WebhooksSvcImpl) RemoveWithContext(ctx context.Context, webhookId string) (*DeleteWebhookResponse, error)

Parameters

webhookId
string
required
The unique identifier of the webhook to delete

Response

Object
string
Always "webhook"
Id
string
The unique identifier of the deleted webhook
Deleted
bool
Whether the webhook was successfully deleted

Example

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")
}

Build docs developers (and LLMs) love