News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Need a primer on efficiently cleaning my forum

Started by rcane, July 04, 2024, 08:01:58 PM

Previous topic - Next topic

rcane

I need to delete old threads from the "recycle bin" board where they go.

Is there a way to efficiently remove threads and not leave traces.

I have plenty of boards to close now as the content is no longer needed and drive space could use some relaxing due to attachments. 


Kindred

Ok...

So, go into the recycle bin and delete them all...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Diego Andrés

You can also prune topics from the maintenance page. Just select the recycled topics board and delete them. I believe it also prunes the topics from other boards because it skips the recycled board 'step'. Just make sure to test it first or make a backup, I haven't personally used this feature.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Aleksi "Lex" Kilpinen

Quick moderation as checkboxes is usually my friend when I need to do something like this, can delete a page worth of topics at one go.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

rcane

Quote from: Aleksi "Lex" Kilpinen on July 05, 2024, 12:33:59 AMQuick moderation as checkboxes is usually my friend when I need to do something like this, can delete a page worth of topics at one go.

I'll look at that too.

If you delete a board, what gets wiped along with it?  Topics and replies is my guess.   Does it also clear the tables in ways other than just the topics and replies?   What I mean:  are there other tables that have data related to topics and replies?

Kindred

There are a number of interconnected table data... 
if you were thinking about direct database edits...  please don't.


Honestly, unless you are talking thousands of threads, deleting a board to delete the threads is not a great plan.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

rcane

Quote from: Kindred on July 06, 2024, 01:00:14 PMThere are a number of interconnected table data... 
if you were thinking about direct database edits...  please don't.


Honestly, unless you are talking thousands of threads, deleting a board to delete the threads is not a great plan.

Yeah that felt sketchy. 

So is there a way to delete topics, boards, or all the way up to a category and ensure the data is 1)gone (as it's unneeded) and 2)space freed up.

Kindred

If you delete the topics using the internal processes (like set moderation to checkboxes, select 100 threads and delete) -- then the system will correctly delete and clean up after itself.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori

Quote from: Kindred on July 06, 2024, 02:01:23 PMIf you delete the topics using the internal processes (like set moderation to checkboxes, select 100 threads and delete) -- then the system will correctly delete and clean up after itself.

this way they go into the recycle bin if enabled, so disable that before taking action.

GL700Wing

The Auto Purge Old Topics mod adds a scheduled task to check individual boards for topics that have not been replied to in a set number of days (configured separately for each board) and automatically removes them.
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Kindred

Quote from: Illori on July 06, 2024, 02:52:50 PM
Quote from: Kindred on July 06, 2024, 02:01:23 PMIf you delete the topics using the internal processes (like set moderation to checkboxes, select 100 threads and delete) -- then the system will correctly delete and clean up after itself.

this way they go into the recycle bin if enabled, so disable that before taking action.

We were talking about topics that are already in the recycle bin
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori

Quote from: rcane on July 06, 2024, 12:55:58 PMIf you delete a board, what gets wiped along with it?  Topics and replies is my guess.   Does it also clear the tables in ways other than just the topics and replies?   What I mean:  are there other tables that have data related to topics and replies?

this makes me believe it is not the recycle bin and it is other boards.

Kindred

#12
Quote from: Illori on July 07, 2024, 05:32:35 AM
Quote from: rcane on July 06, 2024, 12:55:58 PMIf you delete a board, what gets wiped along with it?  Topics and replies is my guess.   Does it also clear the tables in ways other than just the topics and replies?   What I mean:  are there other tables that have data related to topics and replies?

this makes me believe it is not the recycle bin and it is other boards.

Actually, based on the previous conversations, I believe that they intended to load things into the recycle board and then delete that board.... :)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

This approach is firmly not recommended.

Serious question: how many topics are we talking about to delete? 100? 1000? 10000?
Holder of controversial views, all of which my own.


rcane

2000 topics. 14000 posts give or take.

The forum use has to pivot now and I need to free up space.

So, after a full backup I just want to ensure the most responsible way to purge and be rid of all those topics.


Arantor

Go into your preferences and set it to 50 topics per page, turn on quick moderation to checkboxes if it isn't already, and delete 50 at a time from the UI. 40 pages worth won't take long to do by hand.
Holder of controversial views, all of which my own.


PoML

Quote from: rcane on July 04, 2024, 08:01:58 PMI have plenty of boards to close now as the content is no longer needed and drive space could use some relaxing due to attachments.

From the numbers above, 2000 topics of text probably is not the issue but attachments are?
Have you considered using the admin option to prune attachments older than X?

Go to: Administration Center► Attachments and Avatars► File Maintenance

There are 3 simple options for pruning:

  • Remove attachments older than X days with a Message to add to post [attachment deleted by admin]
  • Remove attachments larger than X KB with a Message to add to post [attachment deleted by admin]
  • Remove avatars from members not active for more than X days

PS: realised that this menu may be changed in 2.1...  If so you should upgrade first :-D

Advertisement: