remove deletes all TLS data for the given context.
(name string)
| 47 | |
| 48 | // remove deletes all TLS data for the given context. |
| 49 | func (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 | |
| 56 | func (s *tlsStore) removeEndpoint(name, endpointName string) error { |
| 57 | if err := os.RemoveAll(s.endpointDir(name, endpointName)); err != nil { |