fires after the user deletes a task
gantt.attachEvent("onAfterTaskDelete", function(id,item){ //any custom logic here });