Hi,
You can achieve that by showing the real delete button only when the first button is pressed:
export function deleteBtn_click() {
//delete button was clicked, hide it and show confirm text and button
$w('#deleteBtn').hide();
$w('#confirmText').show();
$w('#confirmBtn').show();
}
export function confirmBtn_click() {
//confirm button was clicked, hide the text and button and delete the current item
$w('#confirmBtn').hide();
$w('#confirmText').hide();
$w('#dataset').remove()
}