But when I run it I got an error mentioned above.
Please post the whole command line how you start the script also.
please del this post
You can do this by yourself: Go to the post -> Click on 'edit' -> Click on 'enhanced edit' -> Set the checkbox "Move thread to recycle bin" -> Send
I have a German user interface here. Therefore the buttons may have a slightly different name.