---
title: "Retrieve Deleted Documents within a Hub"
method: GET
path: "/v1/hub/{hub_id}/deleted-documents"
tags: ["Hub"]
---

# Retrieve Deleted Documents within a Hub

`GET /v1/hub/{hub_id}/deleted-documents`

Get all deleted documents associated with a specific hub, identified by its UUID

## Path parameters

- `hub_id` string, uuid, required

## Response `200`

Successfully retrieved deleted documents within the project

- object
  - `metadata` object
  - `data` SimpleDocument[]
    - `publicId` string, uuid
    - `description` unknown
    - `logo` string
    - `name` string
    - `type` string
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `isDeleted` boolean
    - `deletedAt` string, date-time, nullable
    - `children` DocumentSection[]
      - `name` string
      - `publicId` string, uuid
    - `variables` string[]
    - `variableValues` string[]
    - `expandByDefault` boolean
    - `allowComments` boolean
    - `isTemplate` boolean
    - `lockedTemplate` boolean
    - `projectPublicId` string, uuid
    - `projectName` string

## Other responses

- `403` — You do not have the appropriate permissions
- `404` — Hub not found

---

[API](https://skmtc.net/morta-technology/apis/morta-api-reference.md) · [All operations](https://skmtc.net/morta-technology/apis/morta-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/morta-technology/morta-api-reference/versions/9c58c1c1e7e8/schema)
