From 811e555a0de11dc68b9d0499649b3a34bc407c17 Mon Sep 17 00:00:00 2001 From: ben salim Date: Fri, 28 Jan 2022 14:43:09 +0100 Subject: [PATCH] fix #128 --- .../Server/Managers/DeviceModelImageManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AzureIoTHub.Portal/Server/Managers/DeviceModelImageManager.cs b/src/AzureIoTHub.Portal/Server/Managers/DeviceModelImageManager.cs index 52f978f76..0990a223a 100644 --- a/src/AzureIoTHub.Portal/Server/Managers/DeviceModelImageManager.cs +++ b/src/AzureIoTHub.Portal/Server/Managers/DeviceModelImageManager.cs @@ -51,7 +51,7 @@ public async Task DeleteDeviceModelImageAsync(string deviceModelId) this.logger.LogInformation($"Deleting from Blob storage :\n\t {blobClient.Uri}\n"); - await blobClient.DeleteAsync(); + await blobClient.DeleteIfExistsAsync(); } public Uri ComputeImageUri(string deviceModelId)