How to Delete Hacker Files to Free Up Space on Windows

Because FTP was left open with credentials for an anonymous user, my server was compromised. On a disk, the hackers left directories. Therefore I'm currently attempting to restore the space. What is the best approach to take here?

Best Answered by

Dany· Answered on Jul 20, 2023

The files you cannot delete normally may be successfully deleted by Command Prompt, and we will show you how to use CMD delete files.

1. Open the Start menu on Windows, and type in Command Prompt or CMD to search for this program.

2. Run it as administrator, and then the CMD windows will open.

3. In the CMD windows, you should type in del and follow the path for each file you wish to remove, being sure to separate each file name with a space.

4. If you need to delete folders with CMD, you'll need to type in rmdir and follow the path of the folder you want to delete.

If your files cannot be deleted with CMD, you can try to format your hard drive to free up space. Formatting the hard drive will help you remove the virus and malware. You‘d better back up important files in advance or use a data recovery tool.

1. Open Windows Drive Management by typing "Create and format hard disk partitions" into the search field and click on the result.

2. Find the drive you wish to format (double-check to make sure you pick the right disk). Click it with the right mouse button, then choose "Format...".

3. Label and file system settings should be made. Then begin formatting by clicking "OK".

After formatting the hard drive, you can use EaseUS Data Recovery Wizard to recover the lost files from your hard drive. This functional recovery program lets you get your films, music, photos, and personal documents from your hard drive.

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

How to Fix Windows 8.1 System Files Not Accessible on Computer

It looks like your system files are deleted or corrupted. Don't be frustrated. Since you can open CMD, you can fix the problem with the CMD. We will show you how to do that.


Jul 20, 2023

File History Service Is Grayed Out | No Usable Drives Found [Fixed]

What can you do if File History Service is grayed out, and the system promotes 'No Usable Drives Found'? Don't worry, this article will introduce methods to solve this problem. Read on to learn detailed information.


Jul 20, 2023

How to Delete Files When Program Closes Automatically [BAT File]

It is too troublesome to manually delete these files every time, and maybe you can try to make a BAT file and delete them automatically. We will show you how to do that in this article.


Jul 20, 2023

Can't Delete Files Without Prompt in Solaris 5.10 with RM Command

I have deleted a large number of files from my Directory using the rm -rf *.* command as a regular user, but it still asks for my consent. How to fix this problem and delete these files from my Solaris 5.10?


Jul 20, 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.


Jul 20, 2023

Accidentally Deleted a Photo, How to Recover It

How to recover an accidentally deleted photo? If you accidentally deleted your photo on Windows PC, don't worry! This article will introduce effective photo recovery software. Read on to learn detailed information.


Jul 20, 2023