Skip to main content

removeFileFromProject()

removeFileFromProject(projectId: string, fileId: string): Promise<void>

Defined in: packages/core/src/index.ts:2149

Remove a file from a project

Parameters

ParameterTypeDescription
projectIdstringThe unique identifier of the project
fileIdstringThe unique identifier of the file to remove

Returns

Promise<void>

void

Throws

401 - Not authenticated

Throws

404 - Project or file not found

Example

import { removeFileFromProject } from "@cpod/sdk";

await removeFileFromProject("project-123", "file-456");