---
title: "Count Directory/File in trashed Directory"
method: GET
path: "/2/drive/{drive_id}/trash/{file_id}/count"
tags: ["Drive > Files > Trash"]
deprecated: true
---

# Count Directory/File in trashed Directory

`GET /2/drive/{drive_id}/trash/{file_id}/count`

> **Deprecated.**

Count the number of Directory and File

## Path parameters

- `drive_id` integer, required
- `file_id` integer, required

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` 91ac10ffCountFile
    - `count` integer, required — Total of element in the directory
    - `files` integer, required — Total of files in the directory
    - `directories` integer, required — Total of directories in the directory

## Other responses

- `403` — Forbidden
- `503` — Service Unavailable

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/158a854b0c7d/schema)
