Assets - Admin

Delete a folder and all its contents from S3

Delete a folder and everything under it (STAGING). Recursive and irreversible.

The frontend picker has always called this route; it simply did not exist (only POST /assets/folder did), so "Eliminar pasta" was 405-ing.

Plain def, not async def: this walks an unbounded prefix and issues blocking boto3 calls, which on the event loop would starve every other request (docs/claude/10-api-patterns.md). FastAPI runs def in a threadpool.

delete/api/assets/folder

Request

  • Base URL
    https://api.multigest.pt (the document declares no server; this is the origin it was published from)
  • URL
    https://api.multigest.pt/api/assets/folder
  • Auth
    API key in header x-api-token and API key in header x-origin-verify

Query parameters

folder_pathstring required

Folder path to delete (relative to assets/)

Headers

x-website-tokenstring nullable
x-api-tokenstring nullable

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 21 revisions of this API.