delete

suspend fun delete(name: String, config: DeleteBatchJobConfig? = null): DeleteResourceJob

Deletes a batch job.

Return

A DeleteResourceJob object that shows the status of the deletion.

Parameters

name

A fully-qualified BatchJob resource name or ID. Example: "projects/.../locations/.../batchPredictionJobs/456" or "456" when project and location are initialized in the Gemini Enterprise Agent Platform client. Or "batches/abc" using the Gemini Developer API client.

config

A DeleteBatchJobConfig for configuring the delete request.