• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Remove all "Warning Points" for all my users

Zephyr

Well-known member
#1
Hello, I would like know how remove all Warning Points for all my user please, from xenforo or a sql line. Thanks.
 

Mike

XenForo developer
Staff member
#2
Depending on the situation, you can't actually do it via SQL or in bulk. The warnings themselves would need to be expired/deleted via the relevant user's profile page. (The users with warnings could be identified based on the user_id values in the xf_warning table.)
 

Mike

XenForo developer
Staff member
#4
No, there are potentially more data related to this and intertwined in other tables, so I couldn't recommend editing the DB directly.
 

Xon

Well-known member
#5
I can empty xf_warning table for delete all warning without problem please ?
You should be able bulk update xf_warning.expired_date for all non-expired jobs and then run the cron task to allow all XenForo to expire the warnings.

This should clean up all warnings in bulk.
 

Jeremy

Well-known member
#8
You do not need an add-on to remove warning link under posts (as that seems it is all the add-on does.). Revoke the necessary permission to warn posts and it will disappear.