MCPcopy Create free account
hub / github.com/CodeFox-Repo/codefox / deleteProjectContent

Function deleteProjectContent

frontend/src/config/common-path.ts:82–91  ·  view source on GitHub ↗
(
  userId: string,
  projectId: string,
  fileName: string
)

Source from the content-addressed store, hash-verified

80};
81
82export const deleteProjectContent = async (
83 userId: string,
84 projectId: string,
85 fileName: string
86): Promise<void> => {
87 const contentPath = getProjectContentPath(userId, projectId, fileName);
88 if (existsSync(contentPath)) {
89 await fsPromises.unlink(contentPath);
90 }
91};

Callers

nothing calls this directly

Calls 1

getProjectContentPathFunction · 0.85

Tested by

no test coverage detected