implemented deletion of obsolete directories