NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Delete Licenseedit
Executionedit
The license can be deleted using the deleteLicense()
method:
DeleteLicenseRequest request = new DeleteLicenseRequest(); AcknowledgedResponse response = client.license().deleteLicense(request, RequestOptions.DEFAULT);
Responseedit
The returned DeleteLicenseResponse
contains the acknowledged
flag, which
returns true if the request was processed by all nodes.
Asynchronous Executionedit
This request can be executed asynchronously:
The asynchronous method does not block and returns immediately. Once it is
completed the ActionListener
is called back using the onResponse
method
if the execution successfully completed or using the onFailure
method if
it failed.
A typical listener for DeleteLicenseResponse
looks like: