You can destroy the file you want with the unlink()
function, which we will see as the opposite of the file creation function.
Its use is as simple as the build function and has one parameter.
unlink('hello.txt');
It deletes the hello.txt
file that we are working on.
Follow my blog for more baransel.dev.