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

Checklist Buddy Available for Testing
Tweetz 2.0.0 Released
Tweetz 2.0 Beta
VSColorOutput 2.7 - Time Stamps
Fixed Focal-Length Eyeglasses, a Programmer's Best Friend
How to Choose the Right VPN Service
Two Handy Command Line Scripts
More... (1089)

Donate