rm bedfile after use