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 Mar 19, 2024

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.

 Download for Win Recovery Rate 99.7%
 Download for Mac Trustpilot Rating 4.7

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.

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".

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

What Are Prefetch Files, and Is It Safe to Delete Prefetch Files

Is it safe to delete prefetch files on a Windows PC? This article will tell you the answer. And if you want to recover the permanently deleted files on your Windows PC, keep reading.

Brithny

Mar 19, 2024

Script to Delete Files Older Than 7 Days

You can move files older than 7 days to another folder with a script or using command lines. Let us find out how to move the files instead of deletion.

Dany

Mar 20, 2024

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.

Dany

Mar 20, 2024

How to Recover Deleted Files Using Restore Previous Versions

If you accidentally or unintentionally deleted files and then emptied the Recycle Bin, don't worry! This article will introduce how to recover deleted files using Restore Previous Versions feature. Read on to learn detailed information.

Brithny

Jan 16, 2024

How to Delete All Files That Do Not Match Criteria

Do you want to learn how to remove a file using a script? Don't worry because this post will show you how to delete numerous files with the Remove-item cmdlet and how to delete files that do not match the criteria.

Jaden

Jan 16, 2024

How to Recover Deleted Files in Windows 10 Recuva

This post will walk you through all workable ways to recover deleted files in Windows 10 Recuva. Keep on reading to get the instruction you need.

Finley

Jan 16, 2024