def delete_package_versions(client, domain, domainOwner, repository, format, namespace, package, list_of_versions):
    """Delete package versions from CodeArtifact repository"""
    response = client.delete_package_versions(
        domain=domain,
        domainOwner=domainOwner,
        repository=repository,
        format=format,
        namespace=namespace,
        package=package,
        versions=list_of_versions
    )
    return response