Removes unnecessary external files