Added API to delete task.