MCPcopy Create free account
hub / github.com/docker/cli / remove

Method remove

cli/context/store/tlsstore.go:49–54  ·  view source on GitHub ↗

remove deletes all TLS data for the given context.

(name string)

Source from the content-addressed store, hash-verified

47
48// remove deletes all TLS data for the given context.
49func (s *tlsStore) remove(name string) error {
50 if err := os.RemoveAll(s.contextDir(name)); err != nil {
51 return fmt.Errorf("failed to remove TLS data: %w", err)
52 }
53 return nil
54}
55
56func (s *tlsStore) removeEndpoint(name, endpointName string) error {
57 if err := os.RemoveAll(s.endpointDir(name, endpointName)); err != nil {

Callers 3

RemoveMethod · 0.45
ResetTLSMaterialMethod · 0.45

Calls 1

contextDirMethod · 0.95

Tested by 1