def METHOD_NAME():
    """Delete the rundata file when exiting of the script."""
    logger = getlogger()
    # singletest = get_from_currentdata(SINGLETEST)
    # if singletest:
    #     container = get_from_currentdata('container')
    #     cdir = get_container_dir(container)
    #     shutil.rmtree('%s/snapshots' % cdir)
    cleaning_repos = get_from_currentdata("CLEANING_REPOS")
    if cleaning_repos:
        for repo in cleaning_repos:
            if repo and os.path.exists(repo):
                shutil.rmtree(repo)
        delete_from_currentdata("CLEANING_REPOS")
    logger.info("END: Completed the run and cleaning up.")
    runctx = get_currentdata()
    runctx['end'] = int(time.time() * 1000)
    runctx['log'] = FWLOGFILENAME
    if 'start' in runctx:
        runctx['duration'] = '%d seconds' % int((runctx['end'] - runctx['start'])/1000)
        runctx['start'] = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(runctx['start']/1000))
    runctx['end'] = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(runctx['end']/1000))
    newdata = {}
    for k,v in runctx.items():
        if k not in exclude_list:
            newdata[k] = v
    logger.critical("\033[92m Run Stats: %s\033[00m" % json.dumps(newdata, indent=2))
    if runctx['remote']:
        from processor.helper.utils.compliance_utils import upload_compliance_results
        logger.info("Uploading data....")
        upload_compliance_results(runctx['container'], runctx['outputpath'], runctx['env'], runctx['company'], runctx['apitoken'])
    run_file = framework_currentdata()
    remove_file(run_file)