<?php header('Access-Control-Allow-Origin: *');
$filename = 'Counter.txt'; // Replace with the path to the file you want to delete

// Check if the file exists before attempting deletion
if (file_exists($filename)) {
  // Delete the file
  if (unlink($filename)) {
    echo 'File deleted successfully!';
  } else {
    echo 'Failed to delete the file.';
  }
} else {
  echo 'File does not exist.';
}
?>
