Optimize destroy directory