MCPcopy Index your code
hub / github.com/Moli-X/Resources / delete

Method delete

Script/Hzh.js:438–455  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

436 }
437
438 delete(key) {
439 this.log(`DELETE ${key}`);
440 if (key.indexOf("#") !== -1) {
441 key = key.substr(1);
442 if (isSurge || isLoon) {
443 return $persistentStore.write(null, key);
444 }
445 if (isQX) {
446 return $prefs.removeValueForKey(key);
447 }
448 if (isNode) {
449 delete this.root[key];
450 }
451 } else {
452 delete this.cache[key];
453 }
454 this.persistCache();
455 }
456
457 // notification
458 notify(title, subtitle = "", content = "", options = {}) {

Callers 15

SubOne.jsFile · 0.80
bnFunction · 0.80
PnFunction · 0.80
UoFunction · 0.80
qoFunction · 0.80
SubZero.jsFile · 0.80
AnFunction · 0.80
FnFunction · 0.80
UoFunction · 0.80
qoFunction · 0.80
sub-store-0.min.jsFile · 0.80

Calls 4

persistCacheMethod · 0.80
logMethod · 0.45
indexOfMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected