Posts

delete a single post

DELETE
https://discourse.example.com/posts/{id}.json

Body

application/json
force_destroyboolean

The SiteSetting.can_permanently_delete needs to be enabled first before this param can be used. Also this endpoint needs to be called first without force_destroy and then followed up with a second call 5 minutes later with force_destroy to permanently delete.

Example
true

Parameters

idintegerrequiredpath

Response

200OK

success response