I run this query in my database to bulk soft delete posts of a specific user.
and the problem is that some users when they tap the "last unread post" they transferred some posts or some pages before the last unread post.
Am I missing something ?
Code:
SET @TARGET_USER := 100; -- user_id to wipe test_userSET @ADMIN_USER := 2; -- your own user_id-- Mark every post as soft-deletedUPDATE phpbb_postsSET post_visibility = 2, -- = ITEM_DELETED post_delete_user = @ADMIN_USER, post_delete_time = UNIX_TIMESTAMP(), post_delete_reason= 'Bulk soft delete'WHERE poster_id = @TARGET_USER AND post_visibility <> 2;
Am I missing something ?
Statistics: Posted by gvp9000 — Mon Jun 23, 2025 7:35 am