## Delete Leaked Credential Checks Custom Detection `client.LeakedCredentialChecks.Detections.Delete(ctx, detectionID, body) (*DetectionDeleteResponse, error)` **delete** `/zones/{zone_id}/leaked-credential-checks/detections/{detection_id}` Remove user-defined detection pattern for Leaked Credential Checks. ### Parameters - `detectionID string` Defines the unique ID for this custom detection. - `body DetectionDeleteParams` - `ZoneID param.Field[string]` Defines an identifier. ### Returns - `type DetectionDeleteResponse interface{…}` ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/leaked_credential_checks" "github.com/cloudflare/cloudflare-go/option" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) detection, err := client.LeakedCredentialChecks.Detections.Delete( context.TODO(), "18a14bafaa8eb1df04ce683ec18c765e", leaked_credential_checks.DetectionDeleteParams{ ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", detection) } ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": {}, "success": true } ```