---
title: "Get pending deletions of files from a local storage"
method: GET
path: "/v1/storages/{storage_id}/deletions/"
deprecated: true
---

# Get pending deletions of files from a local storage

`GET /v1/storages/{storage_id}/deletions/`

## Request

- Base URL: `https://app.iconik.io/API/files`
- URL: `https://app.iconik.io/API/files/v1/storages/{storage_id}/deletions/`
- Auth: none declared. Required headers: `Auth-Token`, `App-ID`
- TypeScript: <https://skmtc.dev/iconik/apis/iconik-files/docs/v1/storages/:storage_id/deletions/get.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

Required roles:
 - is_storage_worker

## Path parameters

- `storage_id` string, required

## Query parameters

- `per_page` integer
- `last_id` string

## Headers

- `Auth-Token` string, required
- `App-ID` string, required

## Response `200`

Returns pending deletions to be handled

- FileDeletionsSchema
  - `first_url` string
  - `last_url` string
  - `next_url` string
  - `objects` FileDeletionFromLocalStorageSchema[]
    - `asset_id` string, uuid
    - `directory_path` string
    - `file_id` string, uuid, required
    - `file_type` string
    - `filename` string, required
    - `format_id` string, uuid
    - `id` string, uuid
    - `job_id` string, uuid, required
    - `keep_source` boolean
    - `storage_id` string, uuid, required
    - `template` string
    - `template_engine` string
    - `version_id` string, uuid
  - `page` integer
  - `pages` integer
  - `per_page` integer
  - `prev_url` string
  - `scroll_id` string
  - `total` integer

## Other responses

- `400`: Bad request
- `default`: Error response

---

[API](https://skmtc.dev/iconik/apis/iconik-files.md) - [All operations](https://skmtc.dev/iconik/apis/iconik-files/llms.txt) - [OpenAPI document](https://skmtc.dev/iconik/apis/iconik-files/revisions/ed57d13791a2?raw)
