Cannot remove ids this way because of racing condition.