method

LocalAPI.EmptyTrash

func (local *LocalAPI) EmptyTrash( ctx context.Context, collection string, actor *store.Document, localeOptions ...LocaleOptions, ) ([]store.Document, error)

Permanently delete the current authorized trash selection for one collection.

Source core/local.go:703

@param ctx
The ctx value.
@param collection
The collection value.
@param actor
The actor value.
@param localeOptions
The localeOptions value.
@returns
The declared result.

The operation is bounded and atomic; it fails rather than silently truncating an oversized selection.

Related types

  • LocalAPI

    In-process content operations that share the REST authorization and lifecycle pipeline.

  • Document

    A stored document with status and version metadata.

  • LocaleOptions

    Locale selection for one single-document Local API operation.