system() is used to remove files. Use unlink().
system() is used to remove files. Use unlink().