I have got some datas remaining when I delete an element in a shelve. I tried with pop
, del
and clear
but the result is the same. Datas remaining are in file with the dat extension. So, even after using the method clear the size of the dat file isn't 0Ko.
That's what I tryed :
import shelve
test = shelve.open('test')
test['a']=1
#test.pop('a')
#del test['a']
#test.clear()
test.close()
Is there a way to completely remove a data of a shelve ?