До основного вмісту

← До всіх статей

I accidentally deleted a file or folder

Ця стаття поки що доступна лише англійською мовою.

Deleting a file does not always mean the data is immediately gone forever.

Start with recovery methods that do not scan the disk. Only move to filesystem recovery if the Recycle Bin and backups do not contain the item.

The most important rule is:

If the file is not in a recycle bin or backup, avoid unnecessary use of the affected drive.

First, check the Windows Recycle Bin

Open the Recycle Bin and look for the missing file or folder.

If it is there, select it, right-click, and choose Restore. Windows restores the item to its original folder. [R1]

This is the first recovery path to try because no low-level disk recovery is required.

Was the file stored in OneDrive?

If the file was inside a OneDrive folder, also check the OneDrive recycle bin on the web.

An online-only OneDrive file may not appear in the Windows Recycle Bin. Microsoft states that cloud-deleted files can instead be recovered from the OneDrive or SharePoint web recycle bin. [R1]

So “not in the Windows Recycle Bin” does not necessarily mean “not recoverable.”

Check File History or previous versions

If File History was already enabled before the deletion, it may contain an older copy.

In File Explorer, go to the folder that used to contain the item, right-click it, and choose Restore previous versions. Windows can show earlier versions that still contain a file or folder deleted later. [R2]

Preview the older version first when possible. If current files in the folder matter, prefer Restore to... and recover the copy somewhere else. Microsoft warns that restoring directly can replace the current version and that the replacement cannot be undone. [R2]

File History only helps if a suitable backup existed before the loss.

What if there is no recycle-bin or backup copy?

Windows provides Windows File Recovery, a Microsoft command-line utility for attempting to recover deleted files from local storage, including internal drives, external drives, and USB devices. It does not recover files from cloud storage or network shares. [R3]

At this stage, disk activity matters.

When Windows deletes a file, the space it occupied can be marked as free. The old data may still exist, but later writes can reuse that space. Microsoft therefore recommends minimizing or avoiding use of the computer while attempting recovery. [R3]

Avoid unnecessary downloads, installations, copies, and other activity on the affected drive while the missing data still matters.

Recover to a different drive

Windows File Recovery requires the source and destination drives to be different. [R3]

If the deleted file was on C:, for example, recovered data should go to another destination such as an external USB drive.

Do not create a new partition on the affected drive merely to create a recovery destination. Microsoft warns that doing this after data loss can reduce the chance of successful recovery. [R3]

Is recovery guaranteed?

No.

Recovery software cannot restore data that has already been overwritten. Microsoft specifically notes that recovery may fail because free space was overwritten, particularly on an SSD. [R3]

A recovery is successful only when the recovered file can actually be opened and its contents are intact.

Finding a filename is not the same as recovering a usable file.

Will System Restore bring the file back?

Normally, no.

System Restore is not a personal-file recovery tool. Microsoft describes it as reverting system files, registry settings, and installed programs while leaving personal files unaffected. [R4]

Use the Recycle Bin, OneDrive recovery, File History, a backup, or a file-recovery process for deleted personal data instead.

What should I do now?

  1. Check the Windows Recycle Bin.
  2. If the file was synced, check the OneDrive or SharePoint recycle bin.
  3. Check File History / Restore previous versions if it was configured.
  4. If no protected copy exists, minimize writes to the affected drive.
  5. Recover local data only to a different drive.
  6. Verify the recovered file by opening it and checking that its contents are complete.

If the missing data is irreplaceable, preserving the source is more important than repeatedly trying random repair tools.


Джерела

  1. Restore deleted files or folders in OneDrive — Microsoft Support (2026-09-20)

    “The file or folder is restored to its original folder.”

    https://support.microsoft.com/en-us/onedrive/restore-deleted-files-or-folders-in-onedrive

  2. Backup and restore with File History — Microsoft Support (2026-09-20)

    “To restore deleted content, or to restore a file or folder to a previous state”

    https://support.microsoft.com/en-us/windows/experience/backup-recovery/backup-and-restore-with-file-history

  3. Windows File Recovery — Microsoft Support (2026-09-20)

    “If you want to increase your chances of recovering a file, minimize or avoid using your computer.”

    https://support.microsoft.com/en-us/windows/experience/backup-recovery/windows-file-recovery

  4. System Restore — Microsoft Support (2026-09-20)

    “without affecting your personal files”

    https://support.microsoft.com/en-us/windows/experience/backup-recovery/system-restore