Jump to content

Need to DELETE old safes and lock boxes (NOT set to 0000)


Bricktop

Recommended Posts

Hey guys, I have around 13k items in my object data -

I want to delete abandoned safes and lock boxes from the server (NOT just reset to 0000 - I already do this) 

I have very little knowledge when it comes to SQL's - I tried these but nothing was deleted. Could someone please help?

DELETE FROM `object_data` WHERE `LastUpdated` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 7 DAY) AND `Classname` = "VaultStorageLocked" AND `Inventory` <> '[]' AND `Inventory` IS NOT NULL

================================

DELETE FROM `object_data`
WHERE `LastUpdated` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 7 DAY)
AND `Classname` IN ('Wooden_shed_DZ','WoodShack_DZ', 'TentStorage', 'TentStorageDomed', 'TentStorageDomed2', 'WoodCrate_DZ', 'GunRack_DZ', 'OutHouse_DZ', 'StorageShed_DZ', 'VaultStorage', 'LockboxStorage')

================================

Thanks,

================================

P.S. Is it safe to delete the contents of the HiveExt.log ? It's over 100k in size.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...