diff --git a/sdk/keyvault/azure-keyvault-keys/README.md b/sdk/keyvault/azure-keyvault-keys/README.md index 25205aa60b89b..5ee64ed6a5798 100644 --- a/sdk/keyvault/azure-keyvault-keys/README.md +++ b/sdk/keyvault/azure-keyvault-keys/README.md @@ -292,8 +292,8 @@ keyAsyncClient.getKey("keyName").subscribe(keyResponse -> { Delete an existing Key by calling `deleteKey`. ```java -keyAsyncClient.deleteKey("keyName").subscribe(deletedKey -> - System.out.printf("Deleted Key's deletion time %s \n", deletedKey.deletedDate().toString())); +keyAsyncClient.deleteKey("keyName").subscribe(deletedKeyResponse -> + System.out.printf("Deleted Key's deletion time %s \n", deletedKeyResponse.value().deletedDate().toString())); ``` ### List Keys Asynchronously