MCPcopy Create free account
hub / github.com/SethGammon/Citadel / unixRemove

Function unixRemove

scripts/local-schedule.js:146–151  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

144 const out = spawnSync('schtasks', ['/Query', '/FO', 'CSV', '/NH'], { encoding: 'utf8' });
145 const lines = (out.stdout || '').split('\n').filter((l) => l.includes('citadel-'));
146 if (!lines.length) { console.log('No Citadel schedules found.'); return; }
147 for (const line of lines) console.log(line.trim());
148}
149
150function winRemove(id) {
151 execFileSync('schtasks', ['/Delete', '/TN', id, '/F'], { stdio: 'inherit' });
152 forgetJob(id);
153 console.log(`Removed ${id}`);
154}

Callers 1

local-schedule.jsFile · 0.85

Calls 2

readCrontabFunction · 0.85
writeCrontabFunction · 0.85

Tested by

no test coverage detected