Deleting dir and dirh references