#905 Update delete.php for new theme engine