def remove_non_cwl(deps: CWLObjectType) -> None:
    if ('secondaryFiles' in deps):
        sec_files = cast(List[CWLObjectType], deps['secondaryFiles'])
        for (index, entry) in enumerate(sec_files):
            if (not (('format' in entry) and (entry['format'] == CWL_IANA))):
                del sec_files[index]
            else:
                remove_non_cwl(entry)
def remove_non_cwl(deps: CWLObjectType) -> None:
    if ('secondaryFiles' in deps):
        sec_files = cast(List[CWLObjectType], deps['secondaryFiles'])
        for (index, entry) in enumerate(sec_files):
            if (not (('format' in entry) and (entry['format'] == CWL_IANA))):
                del sec_files[index]
            else:
                remove_non_cwl(entry)