Without having seen your script, I think your easiest solution would be to use header() to send the user to the location you want them to be at.
<?php
// delete file here
header("Location:myfile.php?somevar=somevalue");
?>
Remember that you cannot pass anything to the browser before you call header() or it will fail. So what you probably want to do is this:
<?php
// delete file here, set $deletefailed to 1 if it failed
if ($deletefailed) {
echo "Delete failed";
} else {
header("Location:myfile.php?do=someaction&message=Delete%20succeeded");
}
if ($do == 'someact') {
echo $message;
// do something
}
?>