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 ReSharper tip for inline templates
NoSQL vs. NewSQL: What's the Difference?
Exploring Mithril, A JavaScript Framework for Building Brilliant Applications
Tweetz 1.1
Tweetz Desktop 1.0
Tweetz 0.11 Released
Tip: Delete long file names/folders
More... (1072)

Donate with PayPal