Storing the state of the system may involve a non-trivial amount of both storage and/or time. Or the backing store may not allow for reversing a deletion.
pan69 really said it all: these ideas sound great to designers, but cause nightmares for the programmer that actually has to implement it.
That sounds like an excuse. The problem isn't with the undo. It's with the rest of the system, so clearly their are other problems to address first.
A good designer will have a deep understanding of the capabilities and limitations of the medium they are working with. (Think Jonathan Ive and the countless testing they do using all sorts of different construction materials.) A poor designer will come up with a grand idea, but no idea how to implement it, and then blame the programmer if it's impossible to do.
Just drag the first one out of the trash and leave the other two there.
> What happens if the action you take, changes the state of the user's data in a way that is unrecoverable?
Store the previous state.