Skip to content

Add instructions to clear out old / non-local data for 1.0 upgrade.#433

Open
dessalines wants to merge 2 commits into
mainfrom
clear_old_data_commands
Open

Add instructions to clear out old / non-local data for 1.0 upgrade.#433
dessalines wants to merge 2 commits into
mainfrom
clear_old_data_commands

Conversation

@dessalines
Copy link
Copy Markdown
Member

Adds some sql commands to clear out old / non-local data.

Adds some sql commands to clear out old / non-local data.
@Nutomic
Copy link
Copy Markdown
Member

Nutomic commented May 26, 2026

Deleting all remote posts/comments is not a good idea. It doesnt even exclude posts which were saved, upvoted or commented by local users.

The query in LemmyNet/lemmy#6503 only deletes posts which dont have any comments, and presumaby few other interactions. Still we should mention that admins tweak these queries based on their own requirements.

@dessalines
Copy link
Copy Markdown
Member Author

It doesnt even exclude posts which were saved, upvoted or commented by local users.

The exception list could start getting pretty long here.

only deletes posts which dont have any comments,

For the single person instances, even old posts with comments might not be important. But I'll add this query as an option anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants