clean old restapi conffile