Reply to Zarathustra, > As in subject. > > Type [KeyType] array; > > array[new KeyType(...)] = new Type(...); > ... > delete array; // error > I'm not sure how array=null will interact with other references to the same AA. This should clear them as well (but is more costly). foreach(k;array.keys)array.delete(k);