vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Delete all soft-deleted posts (https://vborg.vbsupport.ru/showthread.php?t=105578)

vampireus 01-17-2006 03:36 PM

Delete all soft-deleted posts
 
Hi,

I have around 100k soft-deleted posts on my forum. Is there a way to physical remove all of them?

Thanks

kriscad 01-18-2006 03:16 AM

Prune Threads Manager

then choose

Thread is Deleted
(Has a deletion notice)

vampireus 01-18-2006 01:36 PM

Thanks, but it can only delete soft-deleted threads. There are topics which have many soft-deleted posts inside. I need to delete these posts without delete the topic.

Paul Janowitz 10-08-2006 03:08 PM

Is there any solution for this? I also have very much soft deleted posts on my forums and would like to remove them physically...

SCRIPT3R 10-08-2006 03:12 PM

i had a query that did this. i totally forget what it was but i asked over at vb.com if you wanna search my posts.

Paul M 10-08-2006 05:47 PM

Try this (backup your post table first !!)

Code:

DELETE FROM post WHERE visible = 2

cvn 07-30-2010 12:29 AM

Quote:

Originally Posted by Paul M (Post 1092522)
Try this (backup your post table first !!)

Code:

DELETE FROM post WHERE visible = 2

Hello, I'm wondering if the query works with vb4. Could someone please confirm that! Thanks so much!

dethfire 02-23-2011 10:11 PM

any confirmation if this worked ok?

BirdOPrey5 02-27-2011 05:35 PM

The only reason it wouldn't work is if you have specified a table prefix in your config.php file.

For example if your table prefix is: vb_

Then the code would be:

Code:

DELETE FROM vb_post WHERE visible = 2
I see no reason why it wouldn't work on VB4 but if your question is about VB4 I suggest asking in the VB4 forum.

Also as this is a database edit, even 1 small typo could wipe out your entire forum, so make sure you have a backup before you try this- this is not a suggestion it is a FACT.

Ramzesik 03-10-2011 02:02 PM

Quote:

Originally Posted by Paul M (Post 1092522)
Try this (backup your post table first !!)

Code:

DELETE FROM post WHERE visible = 2

Quote:

Originally Posted by cvn (Post 2076598)
Hello, I'm wondering if the query works with vb4. Could someone please confirm that! Thanks so much!

It's working. But it's killing to sh*t all indexes.
It's a baaaad way :(
Need another one.

HeyMe 04-26-2011 09:13 AM

Quote:

Originally Posted by Ramzesik (Post 2171898)
It's working. But it's killing to sh*t all indexes.
It's a baaaad way :(
Need another one.

How about a query to delete posts made before a certain date?

No clue how to write a query, but for example: delete soft-deleted posts if date is at least X days ago

This way you can run the query several times for a part of your posts only & reduce the X progressively.

Helpful also if you want to delete only the old posts.

Possible to write such query?


All times are GMT. The time now is 05:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01159 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete