method

LocalAPI.DeletePermanent

func (local *LocalAPI) DeletePermanent( ctx context.Context, collection, id string, actor *store.Document, localeOptions ...LocaleOptions, ) (store.Document, error)

Irreversibly remove an authorized document that is already in trash.

Source core/local.go:660

@param ctx
Request context.
@param collection
Trash-enabled collection slug.
@param id
Trashed document ID.
@param actor
Authenticated actor, or nil.
@param localeOptions
Optional locale selection.
@returns
The removed document snapshot, or an operation error.

This operation is irreversible and only accepts documents already in trash.

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.