method

App.CleanupUploads

func (application *App) CleanupUploads( ctx context.Context, olderThan time.Duration, ) (ReconcileResult, error)

Delete orphan candidates reported by upload reconciliation.

Source core/uploads.go:452

@param ctx
The ctx value.
@param olderThan
The olderThan value.
@returns
The declared result.

Use a grace period of at least five minutes so in-flight storage preparation is not mistaken for an orphan before its document transaction commits.

Related types

  • App

    A resolved application bound to operation services.

  • ReconcileResult

    Result counters from upload reconciliation.