Delete Post from a Topic Using discourse API

Yes, if you can do it with the UI, you can do it via the API call. See the howto topic here titled “How to reverse engineer the Discourse API” for details.