[TM] delete task API.