If you accidentally delete a file or folder stored in your OneDrive or a team (SharePoint), you may recover it from the recycle bin. Deleted items stay in recycle bin for 30 days or until user manually empties recycle bin (not recommended).