
A way to delete a locked file, or current running executable, on disk.
The delete-self-poc is a demonstration of a method to delete a locked executable or currently running file from disk. This concept was initially discovered by Jonas Lykkegaard, and I have created the proof of concept (POC) for it. Additionally, it can be used to delete locked files on disk, provided that the current calling process has the necessary permissions to access and delete them.
How does this work, though - in this POC?
I have included a statically linked release within this repository, if you can't be bothered compiling the original source code.