Purging directory structure