delete stream

Hi,

I am trying to run some automatic end-to-end/integration tests and would like to delete a stream in my local eventstore ([TearDown]).

I am using:

_connection = EventStoreHttpConnection.Create(ConnectionSettings.Default, “http://127.0.0.1:2113”);

_connection.DeleteStreamAsync(StreamName, 0, true);

inspired by:

https://github.com/JustGiving/JustGiving.EventStore.Http/blob/master/src/JustGiving.EventStore.Http.Client/EventStoreHttpConnection.cs

Unfortunately, neither the events nor the stream is deleted when I browse to:

http://127.0.0.1:2113/web/index.html#/streams/TestStream

By the way, how do I obtain the event stream’s expectedVersion (I used 0)?

Thanks.

Christian

ExpectedVersion.Any

and you probably want to await the async operation :wink: