Fixes #1300 Remove the use of delete_post() and delete_thread()
Merge pull request #1301 from Sama34/fix-1300

Fixes #1300 Remove the use of delete_post() and delete_thread()