An open API service indexing awesome lists of open source software.

https://github.com/ahmedelbehary-dev/forceddeletefiles

A lightweight Windows desktop application that allows you to force delete or schedule deletion of locked/in-use files
https://github.com/ahmedelbehary-dev/forceddeletefiles

csharp force-delete forced-delete-files open-source schedule-deletion windows-forms

Last synced: 2 months ago
JSON representation

A lightweight Windows desktop application that allows you to force delete or schedule deletion of locked/in-use files

Awesome Lists containing this project

README

          

# 🗑️ ForcedFileDeleter

**ForcedFileDeleter** is a lightweight Windows desktop application that allows you to force delete or schedule deletion of locked/in-use files — even from system-protected folders like `Program Files`.

---

## 🚀 Features

✅ Select multiple files
✅ Delete unlocked files immediately
🔁 Schedule locked files for deletion on next reboot
🛑 Automatically clears deleted files from UI
🖱️ Intuitive scrollable interface with per-file removal
🔐 Handles access denied and read-only file scenarios

---

## 💡 Use Case

Ever been stuck trying to delete a DLL, EXE, or system temp file that's locked by another process (like IDM or antivirus)?
**FileForceDeleter** helps you:
- Kill stubborn files
- Clean up after uninstallations
- Delete malware remnants or broken setups

---

## 🖥️ Screenshots

### Desktop Shortcut icon
![Desktop Shortcut icon](./assets/1.png)

### Main Interface
![Main Interface](./assets/2.png)

### After Browersing
![Can Remove File From Selected File](./assets/4.png)

### After Deleting
![Deletion Summary](./assets/6.png)

---

## 🛠️ Built With

| Tool / Library | Purpose |
|----------------|--------------------------------|
| C# .NET WinForms | Desktop application UI |
| `MoveFileEx` (kernel32.dll) | Schedules file deletion on reboot |
| Visual Studio 2022+ | Development environment |

---

## 📦 How to Use

1. 🔍 Click **Browse Files** to select one or more files
2. 🗑️ Click **Delete Selected**
3. ✅ Files will be:
- Deleted immediately (if possible)
- Or 🔁 scheduled for deletion on the next system restart
4. 💡 You'll be prompted to reboot if necessary

---

## 📄 License

MIT — free to use, fork, and enhance.