It is an API requirement (although it can be omitted - in that case the whole page gets redrawn when something is removed).