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

How to Choose the Right VPN Service
Two Handy Command Line Scripts
Tweetz 1.3.2
Tweetz 1.3 Release
Mithril Rising
Tweetz Release 1.2.4 - Screen Off Detection
Tweetz Desktop Support for 280 Characters
More... (1084)

Donate