Undoing workflow history

It would be nice to discard as many changes as you want in a workflow with CTRL+Z to recover a previously saved workflow.

Additionally, it could be helpful to define history length by an environment variable in the platform.