MCPcopy
hub / github.com/Dokploy/dokploy / deleteMount

Function deleteMount

packages/server/src/services/mount.ts:297–309  ·  view source on GitHub ↗
(mountId: string)

Source from the content-addressed store, hash-verified

295};
296
297export const deleteMount = async (mountId: string) => {
298 const { type } = await findMountById(mountId);
299
300 if (type === "file") {
301 await deleteFileMount(mountId);
302 }
303
304 const deletedMount = await db
305 .delete(mounts)
306 .where(eq(mounts.mountId, mountId))
307 .returning();
308 return deletedMount[0];
309};
310
311export const updateFileMount = async (mountId: string) => {
312 const mount = await findMountById(mountId);

Callers 2

mount.tsFile · 0.90
compose.tsFile · 0.90

Calls 2

findMountByIdFunction · 0.85
deleteFileMountFunction · 0.85

Tested by

no test coverage detected