# TrashListing

First published 14 Oct 2026 (release 0.2.0) · Unchanged since publication

UrbeStack release 0.2.35 named type of the API.

## Fields

- `bytes` (integer): Disk space used by the Trash, in bytes. Omitted if the Trash is too large to measure in a few seconds.
- `count` (integer)
- `items` (array of FileEntry): Up to 5000 Trash items, ordered by deletion day from newest to oldest.
  - `day` (string): Day the item was deleted, according to the server's clock.
  - `inside` (boolean): Whether following the symbolic link stays within the customer's home directory. UrbeStack follows only links that stay within the home directory.
  - `mode` (string): Permissions as three octal digits.
  - `modified` (string)
  - `name` (string)
  - `owner` (string)
  - `path` (HomePath): A path within the customer's home directory, with / representing the home directory itself. The path cannot contain .. components or control characters.
  - `size` (integer)
  - `target` (string): Target path exactly as stored in the symbolic link.
  - `target_type` (string, one of dir, file, other, missing): Type of the symbolic link's target.
  - `text` (boolean): Whether the built-in editor can display the file, provided when content is returned. The editor supports UTF-8 content up to one megabyte with no NUL bytes.
  - `type` (string, one of dir, file, link, other)
  - `was_in` (HomePath): Original folder to which the item is restored.
- `keep_days` (integer): Number of days after which an item is permanently removed from the Trash, as set by files.trash_days.
- `truncated` (boolean)
- `user` (Username): A username consists of lowercase letters, digits and underscores. For the user role, it also serves as the system account name.

## Used by

- [GET /files/{user}/trash](https://urbestack.com/docs/api/get-files-user-trash.md): List the entries in the customer's Trash
