Delete useless files, and move some file into the buffer/ directory.