---
title: "Report the disk space used by the trash directory"
method: GET
path: "/Trash/usage"
tags: ["Trash"]
---

# Report the disk space used by the trash directory

`GET /Trash/usage`

## Request

- Base URL: `https://cpanel-server.tld:2083/execute`
- URL: `https://cpanel-server.tld:2083/execute/Trash/usage`
- Auth: HTTP basic

Report the current apparent size of the trash directory's contents. Returns whether the trash exists, the total apparent bytes calculated by summing each entry's lstat size, and the number of items in the trash. Excludes the root-level .trash_restore bookkeeping file. Does not walk the account's home directory or follow symbolic links outside the trash. even on large accounts.

## Response `200`

HTTP Request was successful.

- object
  - `apiversion` integer
  - `func` string
  - `module` string
  - `result` object
    - `data` object
      - `bytes` integer: Total apparent size of the trash contents, calculated by summing each entry's lstat size in bytes. Excludes the root-level .trash_restore bookkeeping file. This value does not represent allocated disk blocks or quota impact.
      - `exists` integer: Whether the trash directory exists. A brand-new account that has never trashed anything returns 0; otherwise 1.
      - `items` integer: Number of items in the trash, excluding the .trash_restore bookkeeping file.
    - `errors` string[]
    - `messages` string[]
    - `status` integer
    - `warnings` string[]

## Changes

- **2026-09-12** `99adb57e7a5d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cpanel/apis/cpanel-uapi/changes/Trash/usage/get.md)

---

[API](https://skmtc.dev/cpanel/apis/cpanel-uapi.md) - [All operations](https://skmtc.dev/cpanel/apis/cpanel-uapi/llms.txt) - [OpenAPI document](https://skmtc.dev/cpanel/apis/cpanel-uapi/revisions/05239220da37?raw)
