<?php
require_once dirname(__DIR__) . '/auth_check.php';
require_once dirname(__DIR__) . '/config.php';

if (mysqli_query($koneksi, "DELETE FROM data_sucses WHERE status='PENDING'")) {
    $rows = mysqli_affected_rows($koneksi);
    echo "success: Deleted $rows pending jobs";
} else {
    echo "error: " . mysqli_error($koneksi);
}
