This is a great idea. There are well-documented ways to undo things on stack overflow, but almost every way:
1. Has three competing ways available to complete the 'undo'
2. Every way has a scary caveat that the user must be aware of
It would be awesome to simplify the process for new users.