Updates so that stacks and tasks are not deleted but instead their state is updated to 1 to indicate removed / completed.