def METHOD_NAME(before_timestamp: float):
    """Deleting old files inside : archives and tmp folders.
    Only files inside the following folders are considered :
     - {LOG_FOLDER_PATH}/{ARCHIVES_FOLDER_NAME}
     - {LOG_FOLDER_PATH}/{TMP_FOLDER_NAME}
    Args:
        before_timestamp (float): Timestamp before which files are considered expired.
    """
    archives_directory = get_log_sub_dir(name=ARCHIVES_FOLDER_NAME)
    tmp_directory = get_log_sub_dir(name=TMP_FOLDER_NAME)
    expired_archives_file_list = get_expired_file_list(
        directory=archives_directory,
        before_timestamp=before_timestamp,
    )
    expired_tmp_file_list = get_expired_file_list(
        directory=tmp_directory,
        before_timestamp=before_timestamp,
    )
    remove_file_list(file_list=expired_archives_file_list)
    remove_file_list(file_list=expired_tmp_file_list)