Remove shared arrays.