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)