---
title: "Cleanup File"
method: POST
path: "/api/cleanup/file"
tags: ["cleanup"]
---

# Cleanup File

`POST /api/cleanup/file`

## Request

- Base URL: `https://api.scanforai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.scanforai.com/api/cleanup/file`
- Auth: none declared

Clean an uploaded document IN PLACE and stream the cleaned file back — .docx
and .odt keep their full structure/formatting; .pdf degrades to cleaned .txt.
This is the fix for 'cleaned file comes back as broken plain text'.

## Query parameters

- `lang` string

## Headers

- `X-UI-Lang` string

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/scanforai/apis/scanforai-api.md) · [All operations](https://skmtc.dev/scanforai/apis/scanforai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scanforai/apis/scanforai-api/revisions/ab5d27f4ae13?raw)
