method
LocalAPI.EmptyTrash
EmptyTrash permanently deletes every accessible trashed document in one bounded atomic batch.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collection | string | The collection value. |
options | BulkOptions | The options value. |
Returns
The declared result.
([]store.Document, error)Full signature
func (local *LocalAPI) EmptyTrash(
ctx context.Context,
collection string,
options BulkOptions,
) ([]store.Document, error)Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
BulkOptionsBulkOptions controls the actor and localization of an atomic batch or empty-trash operation. Bulk actions do not consume per-document revisions, population, draft status, or caller IDs.
DocumentA stored document with status and version metadata.