How to Fix Files with Long Filenames Will Not Delete

I have an archive of previous work that has to be deleted, but it won't allow me since some of the individuals who originally produced the files gave them ridiculously lengthy file names. How can I delete these files with long names?

Best Answered by

Dany· Answered on Feb 22, 2023

You can delete the files with long names by using the following methods:

1. This can be fixed for you using Robocopy. For instance, you have to delete everything from C: NastyFolder. Make a new folder on your computer called "C: NiceFolder" and leave it empty. Enter robocopy C: NiceFolder C: NastyFolder /purge at the command prompt after opening it. Everything in C: NastyFolder, even items with ridiculously lengthy file or folder names, will be destroyed.

2. You can use CMD delete files with long names. Navigate to the directory containing your files using File Explorer. Shift while still being held down. Right-click on an empty space. Select open command window from the menu. Your current directory will be the primary focus of a Command Prompt window that opens. In the Command Prompt window, type the following command: DIR /X. Use the command DIR /X /P instead if the directory has more files than can be displayed on a single screen, so it will stop every screen length so you can look at the file list. This command will list all the folders and files in the current directory. Windows will delete the file if you issue a DEL command for it.

If you deleted some files and folders by mistake, you could check the Recycle bin. If you cannot find anything essential from the Recycle bin, you can recover deleted files and folders with EaseUS Data Recovery Wizard. No matter whether you lost files due to partition loss, virus attack, or accidental deletion, this recovery tool will not let you down.

Use EaseUS Data Recovery Wizard to recover deleted or lost files easily and quickly.

Tutorials on how to recover lost, deleted, or formatted data from HDD, SSD, USB, SD card, or other storage media on Windows and Mac.

People Also Ask

Is There Linux Software to Recover Deleted Videos and Images

In Linux, how can I retrieve data that have been permanently erased in Linux? This tutorial will walk you through restoring deleted data in Linux Redhat, Ubuntu, Manjaro, Mint, and Debian. To always convert deleted files in Linux, use EaseUS Linux data recovery software.


Mar 10, 2023

Recover Accidentally Deleted Game Files from Steam

If you accidentally deleted your Steam game files, for example, when cleaning storage and accidentally deleting game files, don't worry! This article will tell you practical ways to recover accidentally deleted Steam game files.


May 05, 2023

How to Recover Crashed Excel Files or Restore Its Previous Version

This post includes complete solutions to help you perform Microsoft Excel file recovery. If you accidentally deleted Excel files, lost an unsaved Excel file, or Microsoft Excel 2016 crashed on saving or opening files, relax. Follow the fixes here to restore your lost Excel files with ease now.


Mar 10, 2023

How to Recover Shredded Files in Windows | Deleted by AVG, Avast and Norton

You can recover shredded files in both Windows and Mac quickly. Files shredded by Windows or third-party antivirus programs like AVG, Mcafee, Avast, and Norton can be effectively retrieved by EaseUS Data Recovery Wizard.


Mar 10, 2023

[NTFS File Permissions] Stop Files Being Deleted from Network Shares

If you want to deny deletion from a Network share, you should change the permission settings on Windows. We will show you how to do that in this passage.


Mar 09, 2023

Recover Lost Files After Removing Redirected Folders

It is sad to lose essential files after removing redirected folders, and most users will keep a backup while using a Windows domain. You can recover files from your previous backup or find a recovery tool to help you.


Feb 22, 2023