## Delete a Account Provider `client.AIGateway.CustomProviders.Delete(ctx, id, body) (*CustomProviderDeleteResponse, error)` **delete** `/accounts/{account_id}/ai-gateway/custom-providers/{id}` Deletes an AI Gateway dataset. ### Parameters - `id string` - `body CustomProviderDeleteParams` - `AccountID param.Field[string]` ### Returns - `type CustomProviderDeleteResponse struct{…}` - `ID string` - `BaseURL string` - `CreatedAt Time` - `ModifiedAt Time` - `Name string` - `Slug string` - `Beta bool` - `CurlExample string` - `Description string` - `Enable bool` - `Headers string` - `JSExample string` - `Link string` - `Logo string` - `Position int64` ### Example ```go package main import ( "context" "fmt" "github.com/stainless-sdks/cloudflare-go" "github.com/stainless-sdks/cloudflare-go/ai_gateway" "github.com/stainless-sdks/cloudflare-go/option" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) customProvider, err := client.AIGateway.CustomProviders.Delete( context.TODO(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", ai_gateway.CustomProviderDeleteParams{ AccountID: cloudflare.F("3ebbcb006d4d46d7bb6a8c7f14676cb0"), }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", customProvider.ID) } ``` #### Response ```json { "result": { "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "base_url": "https://example.com", "created_at": "2019-12-27T18:11:19.117Z", "modified_at": "2019-12-27T18:11:19.117Z", "name": "name", "slug": "slug", "beta": true, "curl_example": "curl_example", "description": "description", "enable": true, "headers": "headers", "js_example": "js_example", "link": "link", "logo": "logo", "position": 0 }, "success": true } ```