rm log and temp directory