diff --git a/include/xbps_api.h b/include/xbps_api.h
index 9f981d30..22242b73 100644
--- a/include/xbps_api.h
+++ b/include/xbps_api.h
@@ -1313,16 +1313,6 @@ char *xbps_pkg_name(const char *pkg);
*/
char *xbps_pkgpattern_name(const char *pattern);
-/**
- * Gets the package epoch version in a package string, i.e foo-2.0:epoch.
- *
- * @param[in] pkg Package string.
- *
- * @return A string with the epoch version string, NULL if it couldn't find
- * the epoch component.
- */
-const char *xbps_pkg_epoch(const char *pkg);
-
/**
* Gets the package version in a package string, i.e foo-2.0.
*
diff --git a/lib/util.c b/lib/util.c
index 014460fa..5d8ae686 100644
--- a/lib/util.c
+++ b/lib/util.c
@@ -245,20 +245,6 @@ xbps_check_is_installed_pkg_by_name(const char *pkgname)
return false;
}
-const char *
-xbps_pkg_epoch(const char *pkg)
-{
- const char *tmp;
-
- assert(pkg != NULL);
-
- tmp = strrchr(pkg, ':');
- if (tmp == NULL)
- return NULL;
-
- return tmp + 1; /* skip first ':' */
-}
-
const char *
xbps_pkg_version(const char *pkg)
{