format and delete some files