The file deletion function is really simple. It's exactly the same with C function. Following is the example. unlink( 'c:/hello.world.txt');