def _clean_sizes(sizes: list) -> list:
    """
    Remove all text from sizes.

    The parser to capture sizes of various objects includes 'in bytes: ' in the
    string which should be stripped, leaving only numbers.

    Parameters
    ----------
    sizes : list
        A ``list`` of ``strings`` of sizes of various objects.

    Returns
    -------
    list
        Returns a ``list`` of ``integers`` of sizes of various objects.
    """
    return [int(size.replace('in bytes: ', '')) for size in sizes]