Thank you for reporting a bug to Unity.
In this case, we consider this to be expected behaviour. The Build Analysis window is not making permanent data changes, and so there is nothing to undo.
Today we will be closing this case. Thank you again for taking the time to report this issue, and please let us know if there is anything else that changes the impact or severity of this issue.