OneDrive: Delete files in bulk

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
AMFOPAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vasil Michev (MVP)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
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AMFOPAuthor 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?
0
Vasil Michev (MVP)Commented:
No need for search, just sort/group them by file type?
0
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

AMFOPAuthor Commented:
The .Vir files are scattered everywhere this is the issue...
0
Vasil Michev (MVP)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
0
Vasil Michev (MVP)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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Office 365

From novice to tech pro — start learning today.