Easy question for you guys and girls.
Can I delete unattached media via xmlrpc? If so please guide me to what function will do it. Thanks
Easy question for you guys and girls.
Can I delete unattached media via xmlrpc? If so please guide me to what function will do it. Thanks
You must be logged in to post a comment.
Absolutely you can, you use
wp.deletePost
with post_id as param, and you make post_id the id of your attached or unattached media.Not directly. Delete functions are locked to ‘page’ and ‘post’ post_type-s. Only the rFC Plugin can help you. It exposes all WordPress functions to XMLRPC clients. Or write your own XMLRPC extension. Nevertheless, you need to PIMP WP to do this remotely.