Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/resend/resend-go/llms.txt

Use this file to discover all available pages before exploring further.

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