deleteOperation method

Future<void> deleteOperation(
  1. DeleteOperationRequest request
)

Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

Throws a http.ClientException if there were problems communicating with the API service. Throws a StatusException if the API failed with a Status message. Throws a ServiceException for any other failure.

Implementation

Future<void> deleteOperation(DeleteOperationRequest request) async {
  final url = Uri.https(_host, '/v1/${request.name}');
  await _client.delete(url);
}