By romagromov on Thursday, 12 March 2015
Posted in Technical Issues
Replies 7
Likes 0
Views 1.1K
Votes 0
Hi! My site have 67000+ messages.
My inbox have 6000 messages (in the main imported from jomsocial)
Is it possible to clean all conversations and messages for 1 year old?
Thanks.
Hello Romagromov,

Unfortunately there is no tools or settings to clean up old message from easysocial conversation. However you can perform the operation manually via your database by running the delete operation from #_social_conversations_message where conversation_id = the message id and created > 1 year or older. Other than that unfortunately it is not possible with the current system.

Hope you understand
·
Thursday, 12 March 2015 19:32
·
0 Likes
·
0 Votes
·
0 Comments
·
how looks this sql request?
·
Thursday, 12 March 2015 19:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

The SQL will be like this:
delete from #__social_conversations_message where created <= DATE_SUB(now(), INTERVAL 365 DAY);

But I'm afraid by deleting this will affect other associate table. But you can try though.
·
Friday, 13 March 2015 10:14
·
0 Likes
·
0 Votes
·
0 Comments
·
I want to bump this topic again because after migrating to ES this tool is would be really needed.
·
Saturday, 12 June 2021 16:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Guido,

Not sure what do you mean. Do you mean you want to reset your migrated data? Wouldn't that remove your existing data?
·
Sunday, 13 June 2021 11:16
·
0 Likes
·
0 Votes
·
0 Comments
·
No but after migration I have also tons of messages that were written long time ago by not active users anymore. It would be very nice to clean messages that are e.g. older than a year. Is the query above still enough or could it break something?
·
Sunday, 13 June 2021 15:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, it will delete any messages older than 365 days ago but do take note that it might affect other tables as well.
·
Sunday, 13 June 2021 21:55
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post