method

App.CleanupUploads

Delete orphan candidates reported by upload reconciliation.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
olderThantime.DurationThe olderThan value.

Returns

The declared result.

(ReconcileResult, error)

How it works

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.

Full signature

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

Source core/uploads.go:487

Related types

  • App

    A resolved application bound to operation services.

  • ReconcileResult

    Result counters from upload reconciliation.