Flushing out file and group