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.
The operation is bounded and atomic; it fails rather than silently truncating an oversized selection.
Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
DocumentA stored document with status and version metadata.
LocaleOptionsLocale selection for one single-document Local API operation.