function sampleBatchDeleteJobs(projectId, tenantId, filter) {
  const client = new talent.JobServiceClient();
  // const projectId = 'Your Google Cloud Project ID';
  // const tenantId = 'Your Tenant ID (using tenancy is optional)';
  // const filter = '[Query]';
  const formattedParent = client.tenantPath(projectId, tenantId);
  const request = {
    parent: formattedParent,
    filter: filter,
  };
  client.batchDeleteJobs(request).catch(err => {
    console.error(err);
  });
  console.log('Batch deleted jobs from filter');
}
Batch delete jobs using a filter

@param projectId {string} Your Google Cloud Project ID
@param tenantId {string} Identifier of the Tenantd
@param filter {string} The filter string specifies the jobs to be deleted.
For example:
companyName = "projects/api-test-project/companies/123" AND equisitionId = "req-1"