When you delete a file or folder, it goes into the Recycle bin, where you have a chance to restore it.
Select the file or files you want to delete.
Select Delete. The files move to the Recycle bin.
Select the Recycle bin.
If you want all of your files back, select Restore all items
Or, select only the files you want and click Restore
The file is returned to its original location.
Note: If you're signed into OneDrive with a Microsoft account, items in the recycle bin are automatically deleted 30 days after they're put there. If your recycle bin is full, the oldest items will be automatically deleted after three days. If you're signed in with a work or school account, items in the recycle bin are automatically deleted after 93 days, unless the administrator has changed the setting. See more information about how long deleted items are kept for work or school accounts.
If you accidentally delete a file in OneDrive, you may be able to recover it later.
OneDrive has a recycle bin that acts kind of like the Recycle bin on your computer desktop, except the OneDrive recycle bin empties itself.
If you’re signed in with a Microsoft account, items stay in the recycle bin for 30 days.
With work or school accounts, the recycle bin empties after 93 days, unless your admin changes the setting.
To restore your deleted files, select the Recycle Bin. You’ll see a list of your recently deleted files.
Select the file you want to restore and select Restore.
You’ll see a notification that your file has been restored.
You’ll find your restored item in its original location in OneDrive.