MCPcopy
hub / github.com/rclone/rclone / ClearConfig

Function ClearConfig

fs/cache/cache.go:233–237  ·  view source on GitHub ↗

ClearConfig deletes all entries which were based on the config name passed in Returns number of entries deleted

(name string)

Source from the content-addressed store, hash-verified

231//
232// Returns number of entries deleted
233func ClearConfig(name string) (deleted int) {
234 createOnFirstUse()
235 ClearMappingsPrefix(name)
236 return c.DeletePrefix(name + ":")
237}
238
239// Clear removes everything from the cache
240func Clear() {

Callers 2

updateRemoteFunction · 0.92
TestClearConfigFunction · 0.85

Calls 3

createOnFirstUseFunction · 0.85
ClearMappingsPrefixFunction · 0.85
DeletePrefixMethod · 0.80

Tested by 1

TestClearConfigFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…