circuitBurn
circuitBurn

Reputation: 903

Deleting a feed and all activities - some activities remain

Our system is set up for users to create and assign tasks to themselves and others. Each user has a notification feed that follows feeds of tasks which they are assigned or involved with.

When we delete tasks we also want the task feed and all activities to be deleted. We are deleting feeds like so:

$client   = new GetStream\Stream\Client($client, $secret);
$taskFeed = $client->feed("task", 1234);
$taskFeed->delete();

However, when I look at the data explorer I still see activities related to the task in the notification feeds.

Unfollowing everyone from the task feed doesn't seem possible; the docs seem to suggest a limit of retrieving 500 followers.

What's the proper way to handle this? Do I need to remove every activity individually using the foreign_ids?

Upvotes: 2

Views: 942

Answers (1)

Dwight Gunning
Dwight Gunning

Reputation: 2525

Deleting a feed won't remove the activities that were previously added to it. They may have been replicated into other feeds via following relationships or targeting via the 'to' field.

You're correct that removing activities by foreign_id is the way to go.

Upvotes: 3

Related Questions