Implement Task.remove