Delete all posts by a user on entire site with API?

Btw I don’t believe there is a way to bulk delete via the API. I think you need to write a script to cycle through each post to delete. Depending on how many posts, rate limits could be an issue.

Lola, how do I write a script to bulk delete Discourse posts?

BTW, Why are you using API to do this?

I think it can also be done as a rake task from command line.