removes directory target