In most Office apps, you can undo an action, like a typo or inserted picture, by pressing Ctrl+Z.
In OneDrive, there aren't many things you can undo. You can however:
-
To roll back to an earlier version of a document, see Restore a previous version of a file.
-
To restore a deleted file, see Restore deleted files or folders from the Recycle bin.