enable delete event POST in js.