<?php
include 'includes/connect.php';

if(isset($_POST['id'])){
    $id = intval($_POST['id']);

    $delete_query = "DELETE FROM lifeline_configuration WHERE id=$id";

    if(mysqli_query($conn, $delete_query)){
        echo "Configuration deleted successfully";
    } else {
        echo "Error deleting configuration";
    }
} else {
    echo "Invalid request";
}
?>