WARNING: Deprecated in 7.15.0.
The Java REST Client is deprecated in favor of the Java API Client.
The license can be deleted using the
DeleteLicenseRequest request = new DeleteLicenseRequest(); AcknowledgedResponse response = client.license().deleteLicense(request, RequestOptions.DEFAULT);
DeleteLicenseResponse contains the
acknowledged flag, which
returns true if the request was processed by all nodes.
This request can be executed asynchronously:
The asynchronous method does not block and returns immediately. Once it is
ActionListener is called back using the
if the execution successfully completed or using the
onFailure method if
A typical listener for
DeleteLicenseResponse looks like: