Removed expired from task api.