delete temporary
buf