GetStream / stream-python

Python Client - Build Activity Feeds & Streams with GetStream.io
https://getstream.io
BSD 3-Clause "New" or "Revised" License
142 stars 40 forks source link

How can I delete all the activity in a stream? #73

Closed japrogramer closed 6 years ago

japrogramer commented 6 years ago

Hello, I have been using the stream api to develop an app .. one of the models that I had in the stream was removed from the database .. and now I would like to remove that data from the stream ..

dwightgunning commented 6 years ago

Currently it isn't possible to delete all activities within a feed via the API.

You may like to add a "removed" boolean column to your database, and a custom field to the Activity which is initially set to 'false' and later updated to 'true' if the activity should be removed. When reading feeds your application can inspect the "removed" field to determine how to treat the Activity.

I'll close this for now as there this isn't a stream-python specific issue / feature request.