Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Allow the deletion of room event history (SYN-601) #1480

Closed
matrixbot opened this issue Jan 18, 2016 · 6 comments
Closed

Allow the deletion of room event history (SYN-601) #1480

matrixbot opened this issue Jan 18, 2016 · 6 comments

Comments

@matrixbot
Copy link
Member

Would it be possible/not against the general conceptual design of Matrix to implement an API or provide a maintenance feature that allows to delete room history that is older than a given timestamp or is in excess of N events?

We are working on a project that needs to keep the most recent N messages that are not older than T timestamp and flush the rest. Either keeping N most recent events or keeping events that are more recent than T timestamp, regardless of count, would work for our needs.

If there is no plan to add this feature or it is contradictory to the design, is there a workaround to this?

(Imported from https://matrix.org/jira/browse/SYN-601)

(Reported by Erik Seres)

@matrixbot
Copy link
Member Author

Jira watchers: @ara4n @richvdh

@matrixbot
Copy link
Member Author

matrixbot commented Jan 18, 2016

Links exported from Jira:

relates to SPEC-141

@matrixbot
Copy link
Member Author

matrixbot commented Jan 18, 2016

We absolutely need to provide a way to expire data older than a timestamp or N events. SPEC-141 (and linked bugs) is where this is being tracked - we just haven't got to it yet :)

-- @ara4n

@matrixbot
Copy link
Member Author

Don't we have this, via the admin API?

-- @richvdh

@matrixbot
Copy link
Member Author

matrixbot commented Oct 26, 2016

Also: dup of SYN-361?

-- @richvdh

@matrixbot matrixbot changed the title Allow the deletion of room event history (SYN-601) Allow the deletion of room event history (https://github.com/matrix-org/synapse/issues/1480) Nov 7, 2016
@matrixbot matrixbot changed the title Allow the deletion of room event history (https://github.com/matrix-org/synapse/issues/1480) Allow the deletion of room event history (SYN-601) Nov 7, 2016
@ara4n
Copy link
Member

ara4n commented Jul 3, 2018

So we have the admin API for purging history on a per-room basis, but we don't have a way of specifying maximum retention in general (or letting admins specify that). Closing in favour of https://github.com/matrix-org/matrix-doc/issues/440 and https://github.com/matrix-org/matrix-doc/issues/447

@ara4n ara4n closed this as completed Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants