deleteJob method

Future<void> deleteJob(
  1. String jobId
)

Deletes a bulk validation job and all its results.

This action cannot be undone. All validation results for this job will be permanently deleted.

jobId The ID of the job to delete.

Throws an ApiException if:

  • The job ID is invalid (404)
  • The API key is invalid (401)
  • Network or server errors occur

Example:

await client.deleteJob(job.id);
print('Job deleted successfully');

Implementation

Future<void> deleteJob(String jobId) async {
  await _request<void>(
    'DELETE',
    '/api/v1/jobs/$jobId',
    null,
    (_) => {},
  );
}