Class: EventStoreClient::HTTP::Commands::Streams::Tombstone

Inherits:
Command
  • Object
show all
Defined in:
lib/event_store_client/adapters/http/commands/streams/tombstone.rb

Instance Method Summary collapse

Methods inherited from Command

inherited

Instance Method Details

#call(stream_name, options: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



8
9
10
11
12
# File 'lib/event_store_client/adapters/http/commands/streams/tombstone.rb', line 8

def call(stream_name, options: {}) # rubocop:disable Lint/UnusedMethodArgument
  headers = { 'ES-HardDelete' => 'true' }
  connection.call(:delete, "/streams/#{stream_name}", body: {}, headers: headers)
  Success()
end