@BetaApi(
      "The surface for long-running operations is not stable yet and may change in the future.")
  public final OperationFuture<Empty, OperationMetadata> deleteModelAsync(
      DeleteModelRequest request) {
    return deleteModelOperationCallable().futureCall(request);
  }
@ BetaApi ( "The surface for long-running operations is not stable yet and may change in the future." ) public final OperationFuture < Empty , OperationMetadata > deleteModelAsync ( DeleteModelRequest request ) { return deleteModelOperationCallable ( ) . futureCall ( request ) ; }
Deletes a model. Returns `google.protobuf.Empty` in the
[response][google.longrunning.Operation.response] field when it completes, and `delete_details`
in the [metadata][google.longrunning.Operation.metadata] field.

<p>Sample code:

<pre><code>
try (AutoMlClient autoMlClient = AutoMlClient.create()) {
ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
DeleteModelRequest request = DeleteModelRequest.newBuilder()
.setName(name.toString())
.build();
autoMlClient.deleteModelAsync(request).get();
}
</code></pre>

@param request The request object containing all of the parameters for the API call.
@throws com.google.api.gax.rpc.ApiException if the remote call fails