Press Ctrl+Z to undo almost any action, whether it's deleting a file or making changes in a document. This is a universal shortcut in many applications.