maxcutler / python-wordpress-xmlrpc

Python library for WordPress XML-RPC integration

Home Page:http://python-wordpress-xmlrpc.rtfd.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

xMagiciaNx opened this issue · comments

commented

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.