- remove the unessary state from directoryNode