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
Query parameters
folder_pathstring required
Folder path to delete (relative to assets/)
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 endpoint across all 1 revision of this API.