Can you revoke a godparent’s rights if your friendship with them ends?

If you are a godparent to a friend’s child and your friendship ends, do you lose all your rights as a godparent? Is it possible to keep a relationship with the kids but not the parents?