Skip to main content

purge_orphan_assets

Function purge_orphan_assets 

Source
pub async fn purge_orphan_assets() -> Result<PurgeOrphansResponse, ServerFnError>
Expand description

一键清理孤儿素材:无引用且 created_at 早于 7 天保护窗。

逐项删文件(容忍单项失败),最后批量删 DB 行。 返回清理数量、释放字节数与文件删除失败数。

§Handler information

  • Method: post
  • Path: <auto>