> ## Documentation Index
> Fetch the complete documentation index at: https://docs.platform.toloka.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# client.files.delete()

> Delete a project file.

Remove the file from the project. Returns 204, or 404 if the project or file is unavailable to you.

## Signature

Method signature on `client.files`:

```ts theme={null}
delete(args: {
  projectId: string;
  fileId: string;
}): Promise<void>;
```

## Parameters

**projectId** `string` *required*

Project ID with prefix `pp.`.

**fileId** `string` *required*

ID of the project file, with prefix `ppf.`.

## Returns

`Promise<void>`

Resolves without a return value.

## Errors

HTTP errors throw [`PotatoApiError`](https://docs.platform.toloka.ai/docs/sdk/errors). The endpoint documents these error responses:

| Status | Description |
| - | - |
| 404 | Project or file not found |
| 429 | Rate limit exceeded |

HTTP endpoint: [`DELETE /projects/{projectId}/files/{fileId}`](https://docs.platform.toloka.ai/docs/api-reference/files/delete-project-file).

```ts delete() theme={null}
import { createClient } from "@toloka-platform/sdk";

const client = createClient({
  baseUrl: "https://platform.toloka.ai",
  apiKey: process.env.TOLOKA_API_KEY!,
});

await client.files.delete({
  projectId: "pp.019a0000-0000-7000-8000-000000000001",
  fileId: "ppf.019a0000-0000-7000-8000-000000000001"
});
```

This method resolves without a return value.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.