MCPcopy Create free account
hub / github.com/firebase/firebase-tools / removeTarget

Method removeTarget

src/rc.ts:150–159  ·  view source on GitHub ↗
(project: string, type: string, resource: string)

Source from the content-addressed store, hash-verified

148 }
149
150 removeTarget(project: string, type: string, resource: string): string | null {
151 const name = this.findTarget(project, type, resource);
152 if (!name) {
153 return null;
154 }
155
156 this.unsetTargetResource(project, type, name, resource);
157 this.save();
158 return name;
159 }
160
161 /**
162 * Clears a specific target.

Callers 2

rc.spec.tsFile · 0.80
target-remove.tsFile · 0.80

Calls 3

findTargetMethod · 0.95
unsetTargetResourceMethod · 0.95
saveMethod · 0.95

Tested by

no test coverage detected