delete task use on function