MCPcopy
hub / github.com/Fission-AI/OpenSpec / remove

Method remove

src/commands/store.ts:601–620  ·  view source on GitHub ↗
(id: string, options: StoreRemoveOptions = {})

Source from the content-addressed store, hash-verified

599 }
600
601 async remove(id: string, options: StoreRemoveOptions = {}): Promise<void> {
602 try {
603 const target = await prepareStoreCleanup({ id });
604 await confirmRemove(target.id, target.root, options);
605 const payload = toCleanupOutput(await removeStore(target));
606
607 if (options.json) {
608 printJson(payload);
609 return;
610 }
611
612 printCleanupHuman('Removed store', payload);
613 } catch (error) {
614 this.handleFailure(
615 options.json,
616 { store: null, registry: null, files: null, status: [] },
617 error
618 );
619 }
620 }
621
622 async list(options: StoreJsonOptions = {}): Promise<void> {
623 try {

Callers 1

registerStoreCommandFunction · 0.95

Calls 7

handleFailureMethod · 0.95
prepareStoreCleanupFunction · 0.85
confirmRemoveFunction · 0.85
toCleanupOutputFunction · 0.85
removeStoreFunction · 0.85
printCleanupHumanFunction · 0.85
printJsonFunction · 0.70

Tested by

no test coverage detected