SQL to Delete all items from User

Blasteh

big tits
Apr 3, 2013
1,156
521
Hello,
I'm looking for an SQL to delete all of a users items. So basically, if there ID is 5, it'll delete all furniture that was owned by User ID 5 and remove it from their rooms.

I was playing around on localhost, and I was trying to max out the room. I maxed it out, and it could not be entered anymore. I have deleted the room from the database, but the thing is on the top-stats it still shows the following:
You must be registered for see images attach

I want to get that user off the top-stats. But by deleting it from the database, it never returned the furniture.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
PHP:
DELETE FROM `items` WHERE `user_id` = '5';

This will not delete moodlight data, toner data, wired data. If you have such data ,et me know and I'll adjust the query.
 

Core

Member
Nov 10, 2016
356
138
Of you want to delete a specific item you can use

DELETE FROM `items` WHERE `user_id` = '5' AND `base_item` = '1';

Change base item with something like throne id to remove them off the throne leaderboard, and so on.
 

Zaka

Programmer
Feb 9, 2012
471
121
Of you want to delete a specific item you can use

DELETE FROM `items` WHERE `user_id` = '5' AND `base_item` = '1';

Change base item with something like throne id to remove them off the throne leaderboard, and so on.
He specifically said he wanted to remove all items connected to his user id
 

Users who are viewing this thread

Top