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 Jan 18, 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

Can't Delete PDF Files from A Shared Folder, What Can I Do

Shift + Delete can be used to delete PDF files or directories permanently. If you still can't remove PDF files on a Windows server, read how to force delete a PDF file that won't be deleted on your Windows PC.

Dany

Jan 10, 2023

How to Delete Files Older Than X days Automatically

Are you tired of useless files on your computer yet eating up space? Then use this simple approach to delete files older than x days using File Explorer, CMD, and PowerShell. We can also assist you in recovering accidentally lost files on Windows 11/10.

Dany

Jan 06, 2023

How Do I Fix Missing File Extensions for Recovered Files

After recovering data with a recovery tool, it is sad to get a bunch of files without file extensions. You can try to open these files without extensions or choose another data recovery program to recover data from your NAS device.

Dany

Dec 29, 2022

Accidentally Deleted Large MKV File, How to Recover

MKV videos that have been lost or destroyed can be recovered using the third-party best video recovery software. We will introduce the best solution to assist you in recovering deleted MKV videos using powerful Video recovery software - EaseUS Data Recovery Wizard in the following article.

Dany

Jan 13, 2023

The File Replication Service May Delete Files, What Can I Do

The DFS file replication may delete files; thus, you can refer to this post to learn how to avoid the circumstance by correctly using the command lines and Windows PC server. And after unintentional deletion, you can recover them with the help of the EaseUS Data Recovery Wizard.

Dany

Jan 12, 2023

How to Delete Files Older Than 30 Days with PowerShell

You can delete files older than 30 days with PowerShell, and there are other solutions to delete these files. We will introduce all the possible ways in this passage.

Dany

Jan 06, 2023