## Delete Logpush job `client.Logpush.Jobs.Delete(ctx, jobID, body) (*JobDeleteResponse, error)` **delete** `/{accounts_or_zones}/{account_or_zone_id}/logpush/jobs/{job_id}` Deletes a Logpush job. ### Parameters - `jobID int64` Unique id of the job. - `body JobDeleteParams` - `AccountID param.Field[string]` The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. - `ZoneID param.Field[string]` The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ### Returns - `type JobDeleteResponse struct{…}` - `ID int64` Unique id of the job. ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/logpush" "github.com/cloudflare/cloudflare-go/option" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) job, err := client.Logpush.Jobs.Delete( context.TODO(), int64(1), logpush.JobDeleteParams{ }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", job.ID) } ``` #### 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" } } ], "success": true, "result": { "id": 1 } } ```