MCPcopy
hub / github.com/nats-io/nats.go / Delete

Method Delete

jetstream/kv.go:137–137  ·  view source on GitHub ↗

Delete will place a delete marker and leave all revisions. A history of a deleted key can still be retrieved by using the History method or a watch on the key. [Delete] is a non-destructive operation and will not remove any previous revisions from the underlying stream. [LastRevision] option can be

(ctx context.Context, key string, opts ...KVDeleteOpt)

Source from the content-addressed store, hash-verified

135 // [LastRevision] option can be specified to only perform delete if the
136 // latest revision the provided one.
137 Delete(ctx context.Context, key string, opts ...KVDeleteOpt) error
138
139 // Purge will place a delete marker and remove all previous revisions.
140 // Only the latest revision will be preserved (with a delete marker).

Callers 15

TestKeyValueBasicsFunction · 0.65
TestKeyValueWatchFunction · 0.65
TestKeyValueKeysFunction · 0.65
TestKeyValueListKeysFunction · 0.65
TestObjectDeleteMarkersFunction · 0.65
TestObjectMetadataFunction · 0.65

Implementers 1

kvsjetstream/kv.go

Calls

no outgoing calls

Tested by 15

TestKeyValueBasicsFunction · 0.52
TestKeyValueWatchFunction · 0.52
TestKeyValueKeysFunction · 0.52
TestKeyValueListKeysFunction · 0.52
TestObjectDeleteMarkersFunction · 0.52
TestObjectMetadataFunction · 0.52