Fixed deletion of obsolete datasets.