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.
Restore deleted files or folders in OneDrive
eBook: Get started with OneDrive