Use the DEL command, but do it carefully:
DEL/F HD1234 HD2345
This removes all the objects in the catalogue with entry numbers between those of HD1234 and HD2345.