---
title: "Archive all unused workspace pages"
method: POST
path: "/v1/workspaces/{workspaceId}/unused/archive"
tags: ["Workspaces"]
---

# Archive all unused workspace pages

`POST /v1/workspaces/{workspaceId}/unused/archive`

Soft-delete flagged never-viewed pages (janitor). Workspace owner or admin. Batches of 100 per call.

## Response `200`

Archive result

- object
  - `archived` integer

## Other responses

- `403` — Access denied

---

[API](https://skmtc.net/shareout/apis/shareout-rest-api.md) · [All operations](https://skmtc.net/shareout/apis/shareout-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shareout/shareout-rest-api/versions/804359ead65a/schema)
