Posts

delete a single post

Changed on
delete/posts/{id}.json

Request

  • Base URL
    https://discourse.example.com
  • Auth
    none declared

Path parameters

idinteger required

Request body

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 request

{
  "force_destroy": true
}

Response

success response

Changes