def METHOD_NAME(delete_partial=False):
    """Clean up temporary files left behind by old gPodder versions
    delete_partial - If True, also delete in-progress downloads
    """
    temporary_files = glob.glob('%s/*/.tmp-*' % gpodder.downloads)
    if delete_partial:
        temporary_files += glob.glob('%s/*/*.partial' % gpodder.downloads)
        # youtube-dl creates .partial.* files for adaptive formats
        temporary_files += glob.glob('%s/*/*.partial.*' % gpodder.downloads)
    for tempfile in temporary_files:
        util.delete_file(tempfile)