Skip to content

DeleteJob

Source: src/AWS/Amplify/DeleteJob.ts

Runtime binding for amplify:DeleteJob.

Bind an App in the function’s init phase to get a callable that deletes a build job from a branch’s history — e.g. a maintenance function pruning old build records. Provide the implementation with Effect.provide(AWS.Amplify.DeleteJobHttp).

// init — bind the operation to the app
const deleteJob = yield* AWS.Amplify.DeleteJob(app);
// runtime — remove the job from the branch's history
yield* deleteJob({ branchName: "main", jobId: "42" });