$file = 'profil-image.jpg'; if (file_exists($file)) { unlink($file); } else { echo "File not found."; }