• Press ‘Windows+S’ and type cmd.
  • Right-click on ‘Command Prompt’ and select ‘Run as administrator’. A cmd window appears.
  • To delete a single file, type: del /F /Q /A C:UsersDownloadsBitRaserForFile.exe
  • If you want to delete a directory (folder), use RMDIR or RD command. Type: rd /S /Q C:UsersDownloads
  • Hit the ‘Enter’ button after typing the command in the cmd window.
/FForce deleting of read-only files.
/SDelete specified files from all subdirectories.
/QQuiet mode, do not ask if ok to delete on global wildcard
/ASelects files to delete based on attributes
Followed by the location of file or folder
  1. Using a Software

If command prompt fails to delete undeletable files and folders, you can use a reliable tool like BitRaser File Eraser that can delete undeletable and locked (or infected) files and folders from your PC and helps you free up unnecessarily used space on your system. Follow these steps:

  • Download and install BitRaser for File software.
  • Run the software.
  • In the left-pane, click on ‘Erase Now’. In the right-panel, all drives and partitions are displayed.
  • Double-click (or click on ‘+’) on the drive to expand it. Keep expanding until you locate the undeletable or locked file or the folder that you want to get rid of.
  • Click the file or folder checkbox to select it. You can select multiple files and folders/subfolders.
  • Click the ‘Erase Now’ button at the bottom right corner. Confirm when prompted.
  • After cleaning selected files and folders, a popup appears where the BitRaser for File asks you to reboot the system. Click ‘Reboot’ to restart the system.
The selected undeletable files and folders are permanently removed from the system after reboot.

Moreover, this tool can also help you to clean up your internet activities, system traces, application traces, and other files and folders permanently beyond the scope of recovery and helps safeguard your privacy.

It erases data securely using 17 International erasure standards like NATO, U.S. Department of Defense (DOD Standard 5220.22-M) 3 Pass/7 Pass, etc.
Conclusion:

Remove or delete your files cautiously and securely or else you may regret deleting some important files or folders accidentally. Use a reliable and trusted antivirus and anti-malware program to protect your system and files from infection.

It will also help you avoid data loss situations due to virus or malware attacks like Ransomware. Also, run schedule cleanup tasks to remove unnecessary files and folders from your system.

You can use BitRaser File Eraser to delete undeletable files and folder and to schedule or automate erasure process (once, daily, weekly, monthly, on first boot, or on every boot).