diff options
Diffstat (limited to 'client/client.go')
-rw-r--r-- | client/client.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/client.go b/client/client.go index bac7bdf1..d9d7fa8c 100644 --- a/client/client.go +++ b/client/client.go @@ -512,6 +512,12 @@ func (c *Client) FetchCounters() (*FeedCounters, error) { return &result, nil } +// FlushHistory changes all entries with the status "read" to "removed". +func (c *Client) FlushHistory() error { + _, err := c.request.Put("/v1/flush-history", nil) + return err +} + func buildFilterQueryString(path string, filter *Filter) string { if filter != nil { values := url.Values{} |