delete of directories

PR to enable the deletion of directories. Since directories do not have a prevValue, a new namedTuple is used.