removes unused endpoint