Any unwanted editing or alterations which have been carried out in the Layout Window can be reversed simply by undoing them. This can be done either by going to Edit Menu > Undo or using the shortcut ⌘Z. Several steps can be reversed quickly by using this command over and over again. If you go back too far, the reversed steps can be re-done either by going to Edit Menu > Redo or selecting the shortcut ⌘⇧Z.
If you are not sure whether to undo a certain step, it can be useful to go to the Edit Menu as the name of the last function carried out is recorded next to the Undo command.
The number of steps available to undo relies on the setting in the History window. Go to Window Menu > History > Set Maximum to find out how many history steps you have set. Alter this number if you require more or less actions to be remembered.