MCPcopy Create free account
hub / github.com/Orgnise/webapp / removeAllWorkspaces

Function removeAllWorkspaces

src/lib/api/workspace.ts:28–33  ·  view source on GitHub ↗
(client: MongoClient, teamId: string)

Source from the content-addressed store, hash-verified

26 * Remove all workspaces for a team
27 */
28export async function removeAllWorkspaces(client: MongoClient, teamId: string) {
29 const workspaceCol = client
30 .db(databaseName)
31 .collection("workspaces");
32 return await workspaceCol.deleteMany({ team: new ObjectId(teamId) });
33}
34
35/**
36 * Remove a workspace. Operation to be performed when a workspace is deleted

Callers 1

route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…