Spear.delete_persistent_subscription
You're seeing just the function
delete_persistent_subscription
, go back to Spear module for more information.
Link to this function
delete_persistent_subscription(conn, stream_name, group_name, opts \\ [])
View Source (since 0.6.0)Specs
delete_persistent_subscription( connection :: Spear.Connection.t(), stream_name :: String.t(), group_name :: String.t(), opts :: Keyword.t() ) :: :ok | {:error, any()}
Deletes a persistent subscription from the EventStoreDB
Persistent subscriptions are considered unique by their stream and group names together: you may define separate persistent subscriptions for the same stream with multiple groups or use the same group name for persistent subscriptions to multiple streams. A combination of stream name and group name together is considered unique though.
Options
Options are passed to request/5
.
Examples
iex> Spear.delete_persistent_subscription(conn, "my_stream", "MyGroup")
:ok