delete legacy directory