small refactorings and add a methode to delete the recent endpoints file