@staticmethod
def _clean_name(name):
    """
        Delete extension and path

        :param name: the name to clean
        :return:
        """
    if name.endswith('.tar.gz'):
        name = name[:-7]
    elif name.endswith('.tgz'):
        name = name[:-4]
    _, _, name = name.rpartition('/')
    return name
