Mike-Ward.Net

Tip: Delete long file names/folders

I work with node packages frequently. The file paths are often longer than what Windows will process. When trying to delete these files and folders, you’ll see an error message saying it can’t delete the file because the name is too long.

QuickTipImage.jpg

The easiest and most consistent way I’ve found to delete these files and folders is to use the node program rimraf.

https://www.npmjs.com/package/rimraf

After it’s installed.

rimraf somefolder

It just works.

← newer older →
.Net, Technology, Life, Whatever

Recent Posts

Quick Tip - Clear ReSharper's Cache to Fix False Errors
Quick Tip - Refined GitHub
Vertical Layout for HTML Tables
Visual Studio 2017 Installer Quick Tip
VSColorOutput for VS 2017 Released
Quick ReSharper tip for inline templates
NoSQL vs. NewSQL: What's the Difference?
More... (1077)

Donate with PayPal