Added dirent deleting feature