PDA

View Full Version : Remove post through database and reset Topics and Posts count


nmohapata123
07-04-2016, 09:32 AM
Hi All,

I need to remove post from database,it can be by deleting post from node table but facing only one problem, that topics and posts count remains unchanged,

Need help to reset Topics and Posts Count in database table.

Thanks in Advance

Replicant
07-04-2016, 11:27 AM
Deleting a post from the node table is not the way to do it. There are other tables involved that need to be deleted and or updated as well. You should use the system API to delete from the database. Then the post counts and so forth would be automatically updated.

nmohapata123
07-05-2016, 04:16 AM
Deleting a post from the node table is not the way to do it. There are other tables involved that need to be deleted and or updated as well. You should use the system API to delete from the database. Then the post counts and so forth would be automatically updated.

can you please tell me about other tables associated with node.

Paul M
07-05-2016, 09:03 AM
Why do you need to try and do it via the database (which is a very bad idea) and not just through the front end ?