maxcutler / python-wordpress-xmlrpc

Python library for WordPress XML-RPC integration
http://python-wordpress-xmlrpc.rtfd.org
MIT License
380 stars 129 forks source link

Cannot find a way to delete a post (Maybe a wordpress bug?) #130

Closed xMagiciaNx closed 5 years ago

xMagiciaNx commented 5 years ago

Hello, I am trying deleting a post via it's ID, but this not working as intended. For example:

`from wordpress_xmlrpc import Client from wordpress_xmlrpc.methods.posts import DeletePost

postID = 12345 wpClient = Client('https://example.com/xmlrpc.php', 'admin', 'pass') DeletePost(postID) `

Although the function returns True, the post is still there online. Maybe its a wordpress issue, an issue with my website (doesn't allow deletion for security reason), something else ?

Thank you in advance.