method

LocalAPI.BulkDelete

BulkDelete atomically deletes or trashes every selected document.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionstringThe collection value.
ids[]stringThe ids value.
optionsBulkOptionsThe options value.

Returns

The declared result.

([]store.Document, error)

Full signature

func (local *LocalAPI) BulkDelete( ctx context.Context, collection string, ids []string, options BulkOptions, ) ([]store.Document, error)

Source core/local.go:639

Related types

  • LocalAPI

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

  • BulkOptions

    BulkOptions 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.

  • Document

    A stored document with status and version metadata.