Try like that:
<form action="/delete" method="POST">
<input type="hidden" name="index" value="<%= index %>" />
<input type="submit" value="POST IS DONE" class="donebtn" />
</form>
Then you should a POST request to /delete with index value in the payload