OneDrive: Delete files in bulk

AMFOP
AMFOP used Ask the Experts™
on
I have a problem with synchronization between my PC and office 365 OneDrive cloud and I discovered that syncing issues are due to false positive files that were detected as malicious files (which is not true) because they were named years ago as .Vir via an anti malware tool.

I don't know if there is a way, via command prompt, 3rd party tool or from within Office 365 Onedrive portal, to delete files in bulk in an easy way instead of clicking on each file and delete it manually which will be a nightmare when you have 2100 files!!! I need to get rid of those .vir files to get syncing working again!
OneDrive.PNG
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2015
Distinguished Expert 2018
Commented:
You can use the "open with explorer" functionality, sort by filetype and bulk select/delete them like you would with any files/folders on your PC. You need to use IE and meet some prereqs though: http://support.microsoft.com/kb/2629108

Author

Commented:
Hi Vasil,

Your solution is intact for handling files and folders EXCEPT the search function which didn't work properly (no results found) !!
Any other ideas for searching for *.Vir and deleting them in bulk?
Most Valuable Expert 2015
Distinguished Expert 2018

Commented:
No need for search, just sort/group them by file type?
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Author

Commented:
The .Vir files are scattered everywhere this is the issue...
Most Valuable Expert 2015
Distinguished Expert 2018
Commented:
Hm, you mean you have them in multiple (sub)folders? Search against webdav view works fine for me for what it's worth, I can even search for a specific file type. If it's still not working for you, you can perhaps try using a mapped drive instead of the "open with explorer" functionality.

Another option is to use a CSOM based script to do the discovery/deletion of items. REST is yet another option: https://msdn.microsoft.com/en-us/library/office/dn292553.aspx
Most Valuable Expert 2015
Distinguished Expert 2018

Commented:
If you feel this question wasn't answered or should be closed differently, post an objection. The moderators will review all objections and close it as they feel fit.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial