Deletes a post by its ID.
Permission | Description |
---|---|
view (profile) | Must have view permission on the profile |
posts.delete | Delete your own posts |
posts.delete_any | Delete any post (admin only) |
Name | Type | Required | Description | Example |
---|---|---|---|---|
post-id | int | Yes | ID of the post to delete | 123 |
Post was successfully deleted. No response body is returned.
Status | Description | Reference |
---|---|---|
401 | Unauthorized | Authentication error |
403 | Forbidden (no permission) | Permission error |
404 | Not found | Not-found error |