MCPcopy Index your code
hub / github.com/cortexproject/cortex / cleanupUser

Method cleanupUser

pkg/ruler/mapper.go:36–42  ·  view source on GitHub ↗
(userID string)

Source from the content-addressed store, hash-verified

34}
35
36func (m *mapper) cleanupUser(userID string) {
37 dirPath := filepath.Join(m.Path, userID)
38 err := m.FS.RemoveAll(dirPath)
39 if err != nil {
40 level.Warn(m.logger).Log("msg", "unable to remove user directory", "path", dirPath, "err", err)
41 }
42}
43
44// cleanup removes all of the user directories in the path of the mapper
45func (m *mapper) cleanup() {

Callers 2

cleanupMethod · 0.95
SyncRuleGroupsMethod · 0.80

Calls 2

JoinMethod · 0.80
LogMethod · 0.45

Tested by

no test coverage detected