How to Undo an Accidental Folder Move or Copy in OneDrive
Question details
The user accidentally dragged a folder into another location within OneDrive and wants to undo the action, determine if the files were moved or copied, and check the file history.
- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Accidental drag-and-drop of folders or files within the OneDrive directory causing unwanted syncing.
- Observed behavior
- Files immediately start syncing to a new location, causing confusion over whether the data was moved or copied and how to reverse the action.
Pause your OneDrive sync immediately from the system tray icon to prevent the accidental changes from fully uploading to the cloud.
Immediately Undo the Action with Keyboard Shortcuts
If you just dragged the folder by mistake, you can instantly reverse the action using the system's Undo command.
Do not click away, open new applications, or close the File Explorer window where the accidental drag-and-drop occurred.
Press the Ctrl and Z keys simultaneously on your keyboard to undo the last file movement. The folder should instantly return to its original location.
Determine if the Folder was Moved or Copied
Knowing how Windows handles dragging files can help you figure out where your files went and if duplicates were created.
Recover Files from the Recycle Bin or Version History
If you cannot use the undo shortcut, you can check if files were deleted from their original spot and restore them.
Manage Your Documents Efficiently with WPS Office
While WPS Office cannot change native Windows or OneDrive system behaviors, it serves as an excellent, lightweight alternative to Microsoft Office. It integrates seamlessly with your local storage and cloud drives, providing a safe and familiar environment for your documents.
- 1. Download WPS Office: Visit the official WPS website and download the free installer for your operating system.
- 2. Connect Your Cloud Storage: Open WPS Office, navigate to the Cloud section, and link your preferred cloud storage to easily access and auto-save your files.

Frequently Asked Questions
Can I view a complete history of file moves in OneDrive?
For personal OneDrive accounts, Microsoft does not provide a complete activity log or history of moved folders. You can only view the version history of individual files that have been edited or modified.
How do I prevent accidental file deletions when moving folders?
You can enable a delete confirmation dialog in Windows to prevent accidental removals. Right-click the Windows Recycle Bin, select Properties, and check the box for 'Display delete confirmation dialog'.
Why did my dragged folder copy instead of move?
When you drag a file between two different drives (for example, from your C: drive OneDrive folder to a D: drive), Windows defaults to copying the file rather than moving it to prevent accidental data loss across partitions.




