public final void deleteCompany(String name) {

    DeleteCompanyRequest request = DeleteCompanyRequest.newBuilder().setName(name).build();
    deleteCompany(request);
  }
public final void deleteCompany ( String name ) { DeleteCompanyRequest request = DeleteCompanyRequest . newBuilder ( ) . setName ( name ) . build ( ) ; deleteCompany ( request ) ; }
Deletes specified company. Prerequisite: The company has no jobs associated with it.

<p>Sample code:

<pre><code>
try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
CompanyName name = CompanyWithTenantName.of("[PROJECT]", "[TENANT]", "[COMPANY]");
companyServiceClient.deleteCompany(name.toString());
}
</code></pre>

@param name Required.
<p>The resource name of the company to be deleted.
<p>The format is "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
example, "projects/api-test-project/tenants/foo/companies/bar".
<p>Tenant id is optional and the default tenant is used if unspecified, for example,
"projects/api-test-project/companies/bar".
@throws com.google.api.gax.rpc.ApiException if the remote call fails