pub async fn purge_orphan_assets() -> Result<PurgeOrphansResponse, ApiError>Expand description
一键清理孤儿素材:无引用且 created_at 早于 7 天保护窗。
先提交 DB 删除,再逐项删文件(容忍单项失败)。 返回清理数量、释放字节数与文件删除失败数。
pub async fn purge_orphan_assets() -> Result<PurgeOrphansResponse, ApiError>一键清理孤儿素材:无引用且 created_at 早于 7 天保护窗。
先提交 DB 删除,再逐项删文件(容忍单项失败)。 返回清理数量、释放字节数与文件删除失败数。