’OneDrive ‘delete all’

eugene tadie 25 Reputation points
2026-04-24T12:13:37.3266667+00:00

I want to ‘delete all’ from my OneDrive instead of deleting one file at a time.

Microsoft 365 and Office | OneDrive | For home | Other
0 comments No comments

Answer accepted by question author
Marcin Policht 112.7K Reputation points MVP Volunteer Moderator
2026-04-24T13:31:01.9966667+00:00

To delete everything from your OneDrive using the web interface, log in to your account through a browser and navigate to the My Files section. You can select every item in the current view by pressing the keyboard shortcut Ctrl + A on a Windows computer or Cmd + A on a Mac. Once all items are highlighted, click the delete button located in the top navigation bar to move them to the recycle bin. If you have a large number of files, you may need to scroll to the bottom of the list first to ensure the browser loads all items before you select them.

If you prefer using a command-line interface on a Windows machine, you can use PowerShell to clear the contents of your local OneDrive sync folder, which will then sync those deletions to the cloud. You should first ensure you are in the correct directory and then use the following command to remove all files and folders recursively.

Remove-Item -Path "C:\Users\YourUsername\OneDrive*" -Recycle -Recurse -Force

If you have OneDrive synced to a computer, you can also perform this action through your standard file explorer. Simply open your OneDrive folder, select all contents with your mouse or keyboard, and delete them as you would with any other local file. It is important to remember that these files will remain in your OneDrive recycle bin for thirty days, or until the bin is full, unless you manually empty the recycle bin on the website to free up storage space immediately.


If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

hth

Marcin

Was this answer helpful?

5 people found this answer helpful.

1 additional answer

Sort by: Oldest
  1. Diana Mariz 11,390 Reputation points Independent Advisor
    2026-04-24T13:32:02.7966667+00:00

    Hi Eugene,

    You have the option to select all by going to files then delete.

    Refer to the screenshot below for reference: User's image

    Was this answer helpful?

    4 people 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.