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 *ApiKeysSvcImpl) Remove(apiKeyId string) (bool, error)
func (s *ApiKeysSvcImpl) RemoveWithContext(ctx context.Context, apiKeyId string) (bool, error)

Parameters

apiKeyId
string
required
The unique identifier of the API key to delete

Response

Returns true if the API key was successfully deleted, or an error if deletion failed.

Example

client := resend.NewClient("re_123456789")

deleted, err := client.ApiKeys.Remove("key_abc123")
if err != nil {
    panic(err)
}

if deleted {
    fmt.Println("API key deleted successfully")
}