func (c *fileStore) Erase(serverAddress string) error {
	delete(c.file.GetAuthConfigs(), serverAddress)
	return c.file.Save()
}
Erase removes the given credentials from the file store.
package credentials
import (
	"github.com/docker/docker/api/types"
	"github.com/docker/docker/registry"
)
type store interface {
	Save() error
	GetAuthConfigs() map[string]types.AuthConfig
	GetFilename() string
}
type fileStore struct {
	file store
}
func NewFileStore(file store) Store {
	return &fileStore{file: file}
}