How to remove an already existing repository and add a new one.+

How to remove an already existing repository and add a new one.