def METHOD_NAME(datadir: pathlib.Path, outdir: pathlib.Path) -> None:
    """Prunes the database to just HIP entries"""
    prune_stars_dat(datadir/'stars.dat', outdir/'stars.dat')
    for xindex in ['hdxindex.dat', 'saoxindex.dat']:
        prune_xindex(datadir/xindex, outdir/xindex)
    prune_starnames(datadir/'starnames.dat', outdir/'starnames.dat')