When I delete my OneDrive files, they are also deleted on my own computer, what should I do?

L Frostowl 0 Reputation points
2026-11-20T01:55:37.5166667+00:00

Hello

I get a warning from OneDrive that the quota is up and my files will be deleted. When I deleted a file for checking, I noticed that it was also deleted from my computer. How do I turn this feature off? I'm afraid of losing all my files. My OneDrive account is on my school e-mail, I also have a drive account in my own e-mail, but I don't use it much as storage and I want my documents to stay on my computer. Can you help?

Microsoft 365 and Office | OneDrive | For education | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Teddie Dang 2,270 Reputation points Independent Advisor
    2026-11-20T02:17:55.6666667+00:00

    Hi @L Frostowl

    What you're seeing is expected behavior when your files are stored inside a synced OneDrive folder. OneDrive is designed to keep the local folder and cloud storage synchronized, so deleting a file from the OneDrive folder on your PC will also delete it from OneDrive in the cloud. You can read more at Work with synced files in File Explorer | Microsoft Support

    Regarding the file you already deleted, you may be able to recover it from the OneDrive Recycle Bin:

    -Go to OneDrive on the web and sign in with your school account.

    -Select Recycle bin from the left navigation pane.

    -Find the deleted file, select it, and choose Restore.

    If the file was synchronized with your PC, you can also check the Windows Recycle Bin.

    For future reference, you can check whether a file is stored locally by looking at its OneDrive status icon in File Explorer. A cloud icon means the file is online-only, while a green check mark indicates that it is available locally.

    Since your school OneDrive account is over its storage quota, I would recommend not deleting large numbers of files until you have made sure your important documents are safely stored outside the OneDrive folder.

    To keep your files only on your computer:

    -Open File Explorer and locate your OneDrive - [School Name] folder.

    -Create a folder outside OneDrive, such as C:\Documents\Local Files.

    -Copy the files and folders you want to keep into that local folder.

    -If some files have a cloud icon, download them first by right-clicking and selecting Always keep on this device.

    -Confirm that the copied files open correctly from the new location.

    Once you have verified your local copies, you can delete the corresponding copies from OneDrive if you want to free up cloud storage space.

    Important: Make sure you have verified your local copies before deleting anything from OneDrive.

    If you do not want the school OneDrive account to sync with your PC at all, select the OneDrive cloud icon in the notification area > Settings (Gear icon) > Account > Choose Unlink this PC. This will stop synchronization with the school account. Files stored in OneDrive will remain available through OneDrive on the web, while files you have copied outside the OneDrive folder will remain on your computer.

    I hope this helps.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. AI answer

    2026-11-20T01:55:54.5766667+00:00

    Yes. If OneDrive is syncing that folder, deleting a file in OneDrive also deletes it from the computer because the folder is being kept in sync.

    For a school account, the safest way to keep documents only on the computer is:

    1. Do not bulk-delete files yet.
    2. In File Explorer, check whether the files are inside the OneDrive folder.
    3. If they are, move the files out of the OneDrive folder to another local folder on the PC that is not inside OneDrive.
      • This keeps them on the computer but removes them from OneDrive sync.
      • Important: files moved out of OneDrive are no longer backed up by OneDrive.
    4. After the files are outside the OneDrive folder, delete the copies from OneDrive on the web to free storage.
    5. If needed, empty the OneDrive recycle bin. Storage updates can take a short time to appear.

    If the goal is to stop the school OneDrive from syncing to the PC:

    1. Select the OneDrive cloud icon in the taskbar.
    2. Select the gear icon > Settings or Preferences.
    3. Open the Account tab.
    4. Select Unlink this PC.

    Unlinking the PC stops sync for that account. Files stored in OneDrive remain available on OneDrive on the web.

    If only some folders should stop syncing:

    1. Select the OneDrive cloud icon.
    2. Open Settings or Preferences.
    3. Go to Account and adjust which folders sync, or move files out of the OneDrive folder.

    For a work or school OneDrive that is over quota:

    • Files become read-only while over quota.
    • New files cannot be uploaded, edited, or synced.
    • Storage includes OneDrive files and the Recycle Bin.
    • A shared folder can also cause the account to exceed quota.

    If the warning says files will be erased, that can happen when the account has exceeded its storage limit. To avoid deletion, reduce usage before the date shown in the notification.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.