diff --git a/Xamarin.Essentials/SecureStorage/SecureStorage.ios.cs b/Xamarin.Essentials/SecureStorage/SecureStorage.ios.cs index 5e5fbc974..44c5725b9 100644 --- a/Xamarin.Essentials/SecureStorage/SecureStorage.ios.cs +++ b/Xamarin.Essentials/SecureStorage/SecureStorage.ios.cs @@ -141,8 +141,8 @@ SecRecord CreateRecordForNewKeyValue(string key, string value, string service) bool RemoveRecord(SecRecord record) { var result = SecKeyChain.Remove(record); - if (result != SecStatusCode.Success) - throw new Exception(string.Format($"Error removing record: {result}")); + if (result != SecStatusCode.Success && result != SecStatusCode.ItemNotFound) + throw new Exception($"Error removing record: {result}"); return true; }