Quote Originally Posted by .paul. View Post
Removing items from a collection while looping for, each through that collection doesn't work.
Why would you want to report - $"Profile {profile} successfully deleted." if the object was not successfully deleted at all?
Well I would only want to report that if it was successful, and continue the loop if not while printing profile is locked. I was thinking something like setting an embedded reference or label to 0 at the start of every loop, and if successful then set it to 1 and then check if the reference = 1 then print profile successfully deleted else print profile is locked. Think this would be easier?