MCPcopy
hub / github.com/grafana/tempo / Delete

Method Delete

tempodb/backend/local/local.go:126–133  ·  view source on GitHub ↗
(ctx context.Context, name string, keypath backend.KeyPath, _ *backend.CacheInfo)

Source from the content-addressed store, hash-verified

124}
125
126func (rw *Backend) Delete(ctx context.Context, name string, keypath backend.KeyPath, _ *backend.CacheInfo) error {
127 if err := ctx.Err(); err != nil {
128 return err
129 }
130
131 path := rw.rootPath(append(keypath, name))
132 return os.RemoveAll(path)
133}
134
135// List implements backend.Reader
136func (rw *Backend) List(ctx context.Context, keypath backend.KeyPath) ([]string, error) {

Callers

nothing calls this directly

Calls 1

rootPathMethod · 0.95

Tested by

no test coverage detected