ensure inv gets deleted