ファイルの削除 unlink を使う。 if(file_exists($del_file)){ unlink($del_file)or die(‘couldnt delete the file’); }