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

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